Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2023 15:56:13 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 1c02fbf2305a - stable/14 - arm64, risvc: warn about ignored kstack_pages for thread0
Message-ID:  <202310201556.39KFuDls021694@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=1c02fbf2305ac0f058c42f9b81de8543c6e19ff4

commit 1c02fbf2305ac0f058c42f9b81de8543c6e19ff4
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-10-11 18:56:28 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-10-20 15:55:45 +0000

    arm64, risvc: warn about ignored kstack_pages for thread0
    
    (cherry picked from commit 6aa641b71d0dd1b26674f0b6dba086410f643595)
---
 sys/arm64/arm64/machdep.c | 4 ++++
 sys/riscv/riscv/machdep.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c
index 8aa45a86fef4..bb7689c19101 100644
--- a/sys/arm64/arm64/machdep.c
+++ b/sys/arm64/arm64/machdep.c
@@ -1049,6 +1049,10 @@ initarm(struct arm64_bootparams *abp)
 
 	early_boot = 0;
 
+	if (bootverbose && kstack_pages != KSTACK_PAGES)
+		printf("kern.kstack_pages = %d ignored for thread0\n",
+		    kstack_pages);
+
 	TSEXIT();
 }
 
diff --git a/sys/riscv/riscv/machdep.c b/sys/riscv/riscv/machdep.c
index 261dc8d6d840..d5767e240c7e 100644
--- a/sys/riscv/riscv/machdep.c
+++ b/sys/riscv/riscv/machdep.c
@@ -596,5 +596,9 @@ initriscv(struct riscv_bootparams *rvbp)
 
 	early_boot = 0;
 
+	if (bootverbose && kstack_pages != KSTACK_PAGES)
+		printf("kern.kstack_pages = %d ignored for thread0\n",
+		    kstack_pages);
+
 	TSEXIT();
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310201556.39KFuDls021694>