Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amiga/amiga Keep the top of stack zero as other m68...



details:   https://anonhg.NetBSD.org/src/rev/5cffe71b7a29
branches:  trunk
changeset: 973083:5cffe71b7a29
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Jun 19 07:43:37 2020 +0000

description:
Keep the top of stack zero as other m68k ports do
(and required by System V ABI).

diffstat:

 sys/arch/amiga/amiga/locore.s |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7232f6ebd84b -r 5cffe71b7a29 sys/arch/amiga/amiga/locore.s
--- a/sys/arch/amiga/amiga/locore.s     Fri Jun 19 07:31:59 2020 +0000
+++ b/sys/arch/amiga/amiga/locore.s     Fri Jun 19 07:43:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.157 2019/03/19 20:30:05 thorpej Exp $     */
+/*     $NetBSD: locore.s,v 1.158 2020/06/19 07:43:37 rin Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -983,7 +983,7 @@
 
 /* set kernel stack, user SP */
        movl    _C_LABEL(lwp0uarea),%a1 | grab lwp0 uarea 
-       lea     %a1@(USPACE),%sp        | set kernel stack to end of area
+       lea     %a1@(USPACE-4),%sp      | set kernel stack to end of area
        movl    #USRSTACK-4,%a2
        movl    %a2,%usp                | init user SP
        movl    %a2,%a1@(PCB_USP)       | and save it



Home | Main Index | Thread Index | Old Index