diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-01-20 13:31:17 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-01-20 13:31:17 +0000 |
commit | 28ab5cfc527a3e212d64650811f6df758dcaa2d5 (patch) | |
tree | adc941173956dfd8d14fce139c446a7a2a4779c0 /sys | |
parent | a29f048c534e852cf582c34d096e99f031f0206a (diff) |
setregs does not reset stack anymore
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/atari/atari/locore.s | 6 | ||||
-rw-r--r-- | sys/arch/mac68k/mac68k/locore.s | 8 |
2 files changed, 3 insertions, 11 deletions
diff --git a/sys/arch/atari/atari/locore.s b/sys/arch/atari/atari/locore.s index c5eb67a1112..f847aa5584d 100644 --- a/sys/arch/atari/atari/locore.s +++ b/sys/arch/atari/atari/locore.s @@ -896,14 +896,10 @@ Lnoflush: /* * proc_trampoline call function in register a2 with a3 as an arg - * and then rei. Note we restore the stack before calling thus giving - * "a2" more stack (e.g. if curproc had a deeply nested call chain...) - * cpu_fork() also depends on struct frame being a second arg to the - * function in a2. + * and then rei. */ .globl _proc_trampoline _proc_trampoline: - movl a3@(P_MD + MD_REGS),sp | process' frame pointer in sp movl a3,sp@- | push function arg (curproc) jbsr a2@ | call function addql #4,sp | pop arg diff --git a/sys/arch/mac68k/mac68k/locore.s b/sys/arch/mac68k/mac68k/locore.s index f1df0427a99..efe1f0d149a 100644 --- a/sys/arch/mac68k/mac68k/locore.s +++ b/sys/arch/mac68k/mac68k/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.21 1997/03/28 12:38:58 briggs Exp $ */ +/* $OpenBSD: locore.s,v 1.22 1999/01/20 13:31:16 niklas Exp $ */ /* $NetBSD: locore.s,v 1.74 1997/02/02 08:17:46 thorpej Exp $ */ /* @@ -1034,11 +1034,7 @@ Lmainreturned: /* * proc_trampoline - * Call function in register a2 with a3 as an arg and then rei. Note - * that we restore the stack before calling, thus giving "a2" more stack. - * (for the case that, e.g., if curproc had a deeply nested call chain...) - * cpu_fork() also depends on struct frame being a second arg to the - * function in a2. + * Call function in register a2 with a3 as an arg and then rei. */ .globl _proc_trampoline _proc_trampoline: |