aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2023-10-10 00:02:06 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2023-10-13 09:26:45 +0000
commit39cddbd7a07c182c4f121bea5a6effa36862fc63 (patch)
treeaddbcaeda729c598e40f172681355ed80f6414fc
parentac63f7534d0102352bf993ebe2c748ce2ffd432e (diff)
downloadsrc-39cddbd7a07c182c4f121bea5a6effa36862fc63.tar.gz
src-39cddbd7a07c182c4f121bea5a6effa36862fc63.zip
arm64: do not disable the kern.kstack_pages tunable on arm64
Add a comment explaining what is not quite correct with arm64 and riscv. Reviewed by: jhb, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D42143
-rw-r--r--sys/kern/subr_param.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index f7d6cf848424..b7dbf606f492 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -170,9 +170,13 @@ init_param1(void)
{
TSENTER();
-#if !defined(__arm64__)
+
+ /*
+ * arm64 and riscv currently hard-code the thread0 kstack size
+ * to KSTACK_PAGES, ignoring the tunable.
+ */
TUNABLE_INT_FETCH("kern.kstack_pages", &kstack_pages);
-#endif
+
hz = -1;
TUNABLE_INT_FETCH("kern.hz", &hz);
if (hz == -1)