Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix a typo in r1.243: test for STACKALIGN not STACK...
details: https://anonhg.NetBSD.org/src/rev/af3a0d2216d9
branches: trunk
changeset: 768761:af3a0d2216d9
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Aug 26 12:52:01 2011 +0000
description:
Fix a typo in r1.243: test for STACKALIGN not STACKLALIGN:
"If STACKALIGN is defined, use it instead of ALIGN. Some arches need a
stack more aligned that ALIGN will give."
diffstat:
sys/kern/kern_exec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8581a582c47c -r af3a0d2216d9 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Fri Aug 26 11:16:50 2011 +0000
+++ b/sys/kern/kern_exec.c Fri Aug 26 12:52:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.323 2011/08/26 09:29:16 reinoud Exp $ */
+/* $NetBSD: kern_exec.c,v 1.324 2011/08/26 12:52:01 jmcneill Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.323 2011/08/26 09:29:16 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.324 2011/08/26 12:52:01 jmcneill Exp $");
#include "opt_ktrace.h"
#include "opt_modular.h"
@@ -780,7 +780,7 @@
len += (arc4random() % PAGE_SIZE);
#endif /* PAX_ASLR */
-#ifdef STACKLALIGN /* arm, etc. */
+#ifdef STACKALIGN /* arm, etc. */
len = STACKALIGN(len); /* make the stack "safely" aligned */
#else
len = ALIGN(len); /* make the stack "safely" aligned */
Home |
Main Index |
Thread Index |
Old Index