Deleted Added
full compact
rfork_thread.S (64003) rfork_thread.S (87006)
1/*-
2 * Copyright (c) 2000 Peter Wemm <peter@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2000 Peter Wemm <peter@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/lib/libc/i386/gen/rfork_thread.S 64003 2000-07-29 11:34:01Z peter $
26 * $FreeBSD: head/lib/libc/i386/gen/rfork_thread.S 87006 2001-11-27 20:51:26Z jhb $
27 */
28
29/*
30 * With thanks to John Dyson for the original version of this.
31 */
32
33#include <SYS.h>
34

--- 25 unchanged lines hidden (view full) ---

60 movl 16(%ebp), %eax # get start thread address
61 movl %eax, (%esi)
62
63 /*
64 * Prepare and execute the thread creation syscall
65 */
66 pushl 8(%ebp)
67 pushl $0
27 */
28
29/*
30 * With thanks to John Dyson for the original version of this.
31 */
32
33#include <SYS.h>
34

--- 25 unchanged lines hidden (view full) ---

60 movl 16(%ebp), %eax # get start thread address
61 movl %eax, (%esi)
62
63 /*
64 * Prepare and execute the thread creation syscall
65 */
66 pushl 8(%ebp)
67 pushl $0
68 leal SYS_rfork, %eax
68 movl $SYS_rfork, %eax
69 KERNCALL
70 jb 2f
71
72 /*
73 * Check to see if we are in the parent or child
74 */
75 cmpl $0, %edx
76 jnz 1f

--- 16 unchanged lines hidden (view full) ---

93 addl $4, %esp
94
95 /*
96 * Exit system call
97 */
98 pushl %eax
99 pushl $0
100#ifdef SYS_exit
69 KERNCALL
70 jb 2f
71
72 /*
73 * Check to see if we are in the parent or child
74 */
75 cmpl $0, %edx
76 jnz 1f

--- 16 unchanged lines hidden (view full) ---

93 addl $4, %esp
94
95 /*
96 * Exit system call
97 */
98 pushl %eax
99 pushl $0
100#ifdef SYS_exit
101 leal SYS_exit, %eax
101 movl $SYS_exit, %eax
102#else
102#else
103 leal SYS_sys_exit, %eax
103 movl $SYS_sys_exit, %eax
104#endif
105 KERNCALL
106
107 /*
108 * Branch here if the thread creation fails:
109 */
1102:
111 PIC_PROLOGUE
112 jmp PIC_PLT(HIDENAME(cerror))
104#endif
105 KERNCALL
106
107 /*
108 * Branch here if the thread creation fails:
109 */
1102:
111 PIC_PROLOGUE
112 jmp PIC_PLT(HIDENAME(cerror))