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
F154055435: D27076.id79133.diff
Sat, Apr 25, 7:32 PM
Unknown Object (File)
Sun, Apr 19, 12:48 PM
Unknown Object (File)
Sun, Apr 19, 3:45 AM
Unknown Object (File)
Sat, Apr 18, 10:21 PM
Unknown Object (File)
Sat, Apr 18, 7:28 PM
Unknown Object (File)
Thu, Apr 16, 9:32 PM
Unknown Object (File)
Sun, Apr 12, 12:44 AM
Unknown Object (File)
Thu, Apr 9, 3:14 AM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 34601
Build 31690: arc lint + arc unit

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