HomeFreeBSD

arm64, riscv: Use KSTACK_PAGES for the thread0 kstack size designator

Description

arm64, riscv: Use KSTACK_PAGES for the thread0 kstack size designator

instead of kstack_pages. Although it is correct right now to use
kstack_pages on amd64 since the kern.kstack_pages tunable is not
functional on arm64, this is too fragile and wrong on riscv.

Include opt_kstack_pages.h into machdep.c to get the right definition
for KSTACK_PAGES.

Reviewed by: jhb, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D42143

Details

Provenance
kibAuthored on Oct 9 2023, 11:56 PM
Reviewer
jhb
Differential Revision
D42143: Some fixes for kern.kstack_pages on arm64/riscv
Parents
rG4095e0bcb9e8: arm64 locore.S: fix typos
Branches
Unknown
Tags
Unknown