aboutsummaryrefslogtreecommitdiff
path: root/share/examples/drivers/make_pseudo_driver.sh
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-03-16 11:16:09 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-03-16 11:16:09 +0000
commitc1c120b2cb8ece606766642dc20bff611fa89d22 (patch)
tree4294b0eb201f3139a45de4eaa842732e32cce06c /share/examples/drivers/make_pseudo_driver.sh
parenta9262f497a45d66ec353c9267faf4b3bc45b331b (diff)
amd64: fix switching to the pmap with pti disabled.
When the pmap with pti disabled (i.e. pm_ucr3 == PMAP_NO_CR3) is activated, tss.rsp0 was not updated. Any interrupt that happen before next context switch would use pti trampoline stack for hardware frame but fault and interrupt handlers are not prepared to this. Correctly update tss.rsp0 for both PMAP_NO_CR3 and pti pmaps. Note that this case, pti = 1 but pmap->pm_ucr3 == PMAP_NO_CR3 is not used at the moment. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D19514
Notes
Notes: svn path=/head/; revision=345226
Diffstat (limited to 'share/examples/drivers/make_pseudo_driver.sh')
0 files changed, 0 insertions, 0 deletions