From a20d77550a297e58ff54e3ab3c3dae489ce92eed Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Tue, 6 Oct 1998 11:55:40 +0000 Subject: Make sure that the argv pointers for init are aligned to the correct boundary on the alpha. --- sys/kern/init_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/init_main.c') diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index de39a9fa1f67..53e74b19bca8 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * @(#)init_main.c 8.9 (Berkeley) 1/21/94 - * $Id: init_main.c,v 1.95 1998/07/15 05:21:48 bde Exp $ + * $Id: init_main.c,v 1.96 1998/09/14 19:56:40 sos Exp $ */ #include "opt_devfs.h" @@ -600,7 +600,7 @@ start_init(p) /* * Move out the arg pointers. */ - uap = (char **)((intptr_t)ucp & ~(NBPW-1)); + uap = (char **)((intptr_t)ucp & ~(sizeof(intptr_t)-1)); (void)suword((caddr_t)--uap, (long)0); /* terminator */ (void)suword((caddr_t)--uap, (long)(intptr_t)arg1); (void)suword((caddr_t)--uap, (long)(intptr_t)arg0); -- cgit v1.2.3