]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
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>
Sun, 18 Sep 2022 06:26:39 +0000 (01:26 -0500)
commit9a45e76cfd25c3a01ef44350ddbda603bb07e408
tree034f87f56e011d407f4c4bfee4b33b6bb7bd4cef
parent540ecebdd01b1a094cdcdef30e4b6cbd87aa3403
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.

(cherry picked from commit bab32a8029c3f9339acbd786ffe8f27ad9cfd288)
sys/arm64/arm64/mp_machdep.c
sys/riscv/riscv/mp_machdep.c