summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-10-06 11:55:40 +0000
committerdfr <dfr@FreeBSD.org>1998-10-06 11:55:40 +0000
commit0d42654efcd0ffe1ba718aa12adceba0cf2ca19b (patch)
tree642e6d794f8014b9d51a9980526ffd473d4cc1d6 /sys/kern/init_main.c
parent518d6b5e04f992234d1960033938c796e8023ecb (diff)
downloadFreeBSD-src-0d42654efcd0ffe1ba718aa12adceba0cf2ca19b.zip
FreeBSD-src-0d42654efcd0ffe1ba718aa12adceba0cf2ca19b.tar.gz
Make sure that the argv pointers for init are aligned to the correct
boundary on the alpha.
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index de39a9f..53e74b1 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);
OpenPOWER on IntegriCloud