Module Name: src
Committed By: matt
Date: Fri May 28 21:23:21 UTC 2010
Modified Files:
src/sys/arch/mips/include [matt-nb5-mips64]: vmparam.h
Log Message:
Make sure that user stack starts 32KB below maximum so that accesses with
displacements will never cross the VM_MAXUSER_ADDRESS boundary.
To generate a diff of this commit:
cvs rdiff -u -r1.41.28.13 -r1.41.28.14 src/sys/arch/mips/include/vmparam.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/include/vmparam.h
diff -u src/sys/arch/mips/include/vmparam.h:1.41.28.13 src/sys/arch/mips/include/vmparam.h:1.41.28.14
--- src/sys/arch/mips/include/vmparam.h:1.41.28.13 Thu Mar 11 08:19:01 2010
+++ src/sys/arch/mips/include/vmparam.h Fri May 28 21:23:21 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.41.28.13 2010/03/11 08:19:01 matt Exp $ */
+/* $NetBSD: vmparam.h,v 1.41.28.14 2010/05/28 21:23:21 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -98,8 +98,8 @@
* and some QED CPUs perform some virtual address checks before the
* offset is calculated.
*/
-#define USRSTACK (VM_MAXUSER_ADDRESS-PAGE_SIZE) /* Start of user stack */
-#define USRSTACK32 ((uint32_t)VM_MAXUSER32_ADDRESS-PAGE_SIZE)
+#define USRSTACK (VM_MAXUSER_ADDRESS-0x8000) /* Start of user stack */
+#define USRSTACK32 ((uint32_t)VM_MAXUSER32_ADDRESS-0x8000)
/* alignment requirement for u-area space in bytes */
#define USPACE_ALIGN USPACE