HomeFreeBSD

arm64, riscv: size boot stacks appropriately

Description

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)

Details

Provenance
kevansAuthored on Sep 7 2022, 2:11 AM
Parents
rG65b33f206d34: tools: test: iconv: fix open_2 to not segfault
Branches
Unknown
Tags
Unknown