summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-24 21:59:25 +0000
committerjhb <jhb@FreeBSD.org>2001-01-24 21:59:25 +0000
commitaf00dc8eef26d6f9d2b9d3cd92429a0db97e0b3c (patch)
tree1a65f27d40bfb7ed1d2518d205618e42ea64e92b /sys/amd64
parent222035d6b123a02eab80f14e5165f2cf38dfda82 (diff)
downloadFreeBSD-src-af00dc8eef26d6f9d2b9d3cd92429a0db97e0b3c.zip
FreeBSD-src-af00dc8eef26d6f9d2b9d3cd92429a0db97e0b3c.tar.gz
- Change fork_exit() to take a pointer to a trapframe as its 3rd argument
instead of a trapframe directly. (Requested by bde.) - Convert the alpha switch_trampoline to call fork_exit() and use the MI fork_return() instead of child_return(). - Axe child_return().
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/exception.S3
-rw-r--r--sys/amd64/amd64/exception.s3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S
index 54d7f82..d3bce3b 100644
--- a/sys/amd64/amd64/exception.S
+++ b/sys/amd64/amd64/exception.S
@@ -289,10 +289,11 @@ IDTVEC(int0x80_syscall)
jmp _doreti
ENTRY(fork_trampoline)
+ pushl %esp /* trapframe pointer */
pushl %ebx /* arg1 */
pushl %esi /* function */
call _fork_exit
- addl $8,%esp
+ addl $12,%esp
/* cut from syscall */
/*
diff --git a/sys/amd64/amd64/exception.s b/sys/amd64/amd64/exception.s
index 54d7f82..d3bce3b 100644
--- a/sys/amd64/amd64/exception.s
+++ b/sys/amd64/amd64/exception.s
@@ -289,10 +289,11 @@ IDTVEC(int0x80_syscall)
jmp _doreti
ENTRY(fork_trampoline)
+ pushl %esp /* trapframe pointer */
pushl %ebx /* arg1 */
pushl %esi /* function */
call _fork_exit
- addl $8,%esp
+ addl $12,%esp
/* cut from syscall */
/*
OpenPOWER on IntegriCloud