arm64: do not disable the kern.kstack_pages tunable on arm64

Add a comment explaining what is not quite correct with arm64 and riscv.

Reviewed by:	jhb, markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D42143
This commit is contained in:
Konstantin Belousov 2023-10-10 03:02:06 +03:00
parent ac63f7534d
commit 39cddbd7a0

View file

@ -170,9 +170,13 @@ init_param1(void)
{
TSENTER();
#if !defined(__arm64__)
/*
* arm64 and riscv currently hard-code the thread0 kstack size
* to KSTACK_PAGES, ignoring the tunable.
*/
TUNABLE_INT_FETCH("kern.kstack_pages", &kstack_pages);
#endif
hz = -1;
TUNABLE_INT_FETCH("kern.hz", &hz);
if (hz == -1)