]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/amd64/amd64/pmap.c
amd64: Make it easier to configure exception stack sizes
authorMark Johnston <markj@FreeBSD.org>
Wed, 4 Nov 2020 16:42:20 +0000 (16:42 +0000)
committerMark Johnston <markj@FreeBSD.org>
Wed, 4 Nov 2020 16:42:20 +0000 (16:42 +0000)
commitcff169880e88bbb6ee1b39713bdd7acba2aca201
tree6d5a3b10879eac742105ce9d242c593299521a3a
parentf7db0c9532521496366564e579d0eadc9134dad0
amd64: Make it easier to configure exception stack sizes

The amd64 kernel handles certain types of exceptions on a dedicated
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 use larger
stacks.  Add constants to intr_machdep.h to make this easier to tweak.

No functional change intended.

Reviewed by: kib
MFC after: 1 week
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D27076
sys/amd64/amd64/machdep.c
sys/amd64/amd64/mp_machdep.c
sys/amd64/amd64/pmap.c
sys/amd64/include/intr_machdep.h