Source-Changes-HG archive

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

[src/nathanw_sa]: src/lib/libc/arch/alpha/gen Align the stack pointer.



details:   https://anonhg.NetBSD.org/src/rev/209e92fe4787
branches:  nathanw_sa
changeset: 505566:209e92fe4787
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Mon Jan 28 20:09:50 2002 +0000

description:
Align the stack pointer.

diffstat:

 lib/libc/arch/alpha/gen/_lwp.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 47964bbed702 -r 209e92fe4787 lib/libc/arch/alpha/gen/_lwp.c
--- a/lib/libc/arch/alpha/gen/_lwp.c    Mon Jan 28 20:07:58 2002 +0000
+++ b/lib/libc/arch/alpha/gen/_lwp.c    Mon Jan 28 20:09:50 2002 +0000
@@ -1,4 +1,4 @@
-/*     $Id: _lwp.c,v 1.1.2.2 2001/12/17 22:10:02 nathanw Exp $ */
+/*     $Id: _lwp.c,v 1.1.2.3 2002/01/28 20:09:50 nathanw Exp $ */
 
 /* Copyright */
 
@@ -27,6 +27,6 @@
        gr[_REG_T12] = (unsigned long) start;
        gr[_REG_RA] = (unsigned long) _lwp_exit;
        gr[_REG_A0] = (unsigned long) arg;
-       gr[_REG_SP] = (unsigned long) (stack_base + stack_size);
+       gr[_REG_SP] = ((unsigned long) (stack_base + stack_size)) & ~0x7;
        gr[_REG_S6] = 0;
 }



Home | Main Index | Thread Index | Old Index