diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2023-10-11 18:56:28 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2023-10-20 15:58:14 +0000 |
commit | 7daf9fd3f4eb7936fa5bdf238bd7b466e13c0e3a (patch) | |
tree | bfb8c4b89fb3a9f47613aa6e3a6b8c21a139a809 | |
parent | 1562a8f4b72ff44eef090d07624b9dfce1b02bf8 (diff) | |
download | src-7daf9fd3f4eb7936fa5bdf238bd7b466e13c0e3a.tar.gz src-7daf9fd3f4eb7936fa5bdf238bd7b466e13c0e3a.zip |
arm64, risvc: warn about ignored kstack_pages for thread0
(cherry picked from commit 6aa641b71d0dd1b26674f0b6dba086410f643595)
-rw-r--r-- | sys/arm64/arm64/machdep.c | 4 | ||||
-rw-r--r-- | sys/riscv/riscv/machdep.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c index a575ca5eb818..5c786a58f046 100644 --- a/sys/arm64/arm64/machdep.c +++ b/sys/arm64/arm64/machdep.c @@ -895,6 +895,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 b8a60d3a2bff..79305cbc29d8 100644 --- a/sys/riscv/riscv/machdep.c +++ b/sys/riscv/riscv/machdep.c @@ -599,6 +599,10 @@ 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(); } |