Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/include increase UPAGES (used for lwp kernel ...



details:   https://anonhg.NetBSD.org/src/rev/dba8f992cad5
branches:  trunk
changeset: 973377:dba8f992cad5
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Jun 29 09:56:51 2020 +0000

description:
increase UPAGES (used for lwp kernel stack) for SVS so the the
amount of actually usable kernel stack is the same for SVS and
non-SVS kernels (currently 12 KiB)

discussed with maxv@, part of investigation for PR kern/S55402

diffstat:

 sys/arch/amd64/include/param.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 9cd8f33b6366 -r dba8f992cad5 sys/arch/amd64/include/param.h
--- a/sys/arch/amd64/include/param.h    Mon Jun 29 09:45:35 2020 +0000
+++ b/sys/arch/amd64/include/param.h    Mon Jun 29 09:56:51 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.37 2020/03/17 17:18:49 maxv Exp $  */
+/*     $NetBSD: param.h,v 1.38 2020/06/29 09:56:51 jdolecek Exp $      */
 
 #ifdef __x86_64__
 
@@ -12,6 +12,7 @@
 #if defined(_KERNEL_OPT)
 #include "opt_kasan.h"
 #include "opt_kmsan.h"
+#include "opt_svs.h"
 #endif
 #endif
 
@@ -69,6 +70,8 @@
 
 #if defined(KASAN) || defined(KMSAN)
 #define        UPAGES          8
+#elif defined(SVS)
+#define        UPAGES          6               /* 1 page used internally by SVS */
 #else
 #define        UPAGES          5               /* pages of u-area (1 for redzone) */
 #endif



Home | Main Index | Thread Index | Old Index