HomeFreeBSD

amd64: include opt_kstack_pages.h

Description

amd64: include opt_kstack_pages.h

This fixes an early KASAN initialization panic in
pmap_san_enter_early_alloc_4k, when a non-default value is specified for
KSTACK_PAGES in the build config file.

Also, rearrange amd64/locore.S's #include order to match the
counterparts of other architectures. And amd64/locore.S now also
explicitly include opt_kstack_pages.h as well.

Sponsored by: Juniper Networks, Inc.
MFC after: 7 days
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D51676

Details

Provenance
khngAuthored on Aug 1 2025, 4:29 PM
Reviewer
markj
Differential Revision
D51676: amd64/pmap: include opt_kstack_pages.h
Parents
rG62439516cc9b: tests: gif(4): Add tests to cover all IPv[46] in IPv[46] setups
Branches
Unknown
Tags
Unknown
Reverted By
rGee09ce3f1f2e: Revert "amd64: include opt_kstack_pages.h"