HomeFreeBSD

Fix secondary stacks calculation on ARM64

Description

Fix secondary stacks calculation on ARM64

Secondary stack calculation is modified to provide
stack_top = secondary_stacks + (cpu_id) * PAGE_SIZE * KSTACK_PAGES
because on ARM64 the stack grows to lower memory addresses.

Obtained from: Semihalf
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3107

Details

Provenance
zbbAuthored on
Differential Revision
D3107: Fix ARM64 stack calculation
Parents
rS285653: Increase DMAP (Direct Map) size on ARM64
Branches
Unknown
Tags
Unknown