]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
amd64: Make it easier to configure exception stack sizes
authormarkj <markj@FreeBSD.org>
Wed, 4 Nov 2020 16:42:20 +0000 (16:42 +0000)
committermarkj <markj@FreeBSD.org>
Wed, 4 Nov 2020 16:42:20 +0000 (16:42 +0000)
commit38fd2c571fb0563c1d44106f9d4d9b84f774fe36
tree6d5a3b10879eac742105ce9d242c593299521a3a
parent25fc94b8d9d1e8762536543f35fcba461053114b
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