arm64, riscv: size boot stacks appropriately
authorKyle Evans <kevans@FreeBSD.org>
Wed, 7 Sep 2022 02:11:30 +0000 (21:11 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 8 Sep 2022 05:03:05 +0000 (00:03 -0500)
commitbab32a8029c3f9339acbd786ffe8f27ad9cfd288
tree2b10b3dd6197339b51c3ec414e2ba4750b8317cc
parentd0354fa7b6b1931afe1806bd0bfe3ba83e2aeb00
arm64, riscv: size boot stacks appropriately

In 8db2e8fd16c4 ("Remove the secondary_stacks array in arm64 [...]"),
bootstacks was setup to be allocated dynamically.  While this is
generally how x86 does it, it inadvertently shrunk each boot stack from
KSTACK_PAGES pages to a single page.

Resize these back up to the expected size using the kstack_pages
tunable, as we'll need larger stacks with upcoming sanitizer work.

Reviewed by: andrew, imp, markj
Fixes: 8db2e8fd16c4 ("Remove the secondary_stacks array [...]")
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D36475
sys/arm64/arm64/mp_machdep.c
sys/riscv/riscv/mp_machdep.c