Page MenuHomeFreeBSD

amd64: Make it easier to configure exception stack sizes
ClosedPublic

Authored by markj on Nov 3 2020, 3:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 1:31 AM
Unknown Object (File)
Sun, Oct 5, 1:28 AM
Unknown Object (File)
Wed, Sep 24, 11:09 PM
Unknown Object (File)
Sep 7 2025, 8:18 AM
Unknown Object (File)
Sep 4 2025, 1:58 AM
Unknown Object (File)
Aug 27 2025, 9:11 PM
Unknown Object (File)
Aug 24 2025, 1:01 PM
Unknown Object (File)
Aug 17 2025, 10:16 PM
Subscribers

Details

Summary

We handle certain types of exceptions on a dedicated per-CPU stack.
Currently the sizes of these stacks are all hard-coded to PAGE_SIZE, but
for at least NMI handling it can be useful to configure larger stacks.
Add constants to intr_machdep.h to make this easier to tweak, since
exception stacks are allocated both in .bss and during AP startup.

No functional change intended.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Nov 3 2020, 3:09 PM
markj created this revision.

You need to adjust pmap_pti_init() as well.

Make sure PTI uses the correct stack sizes.

This revision is now accepted and ready to land.Nov 3 2020, 5:35 PM