diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2018-01-20 17:46:09 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2018-01-20 17:46:09 +0000 |
commit | 3a5e472e17977ec486782c1b9ac62bf9623b1b34 (patch) | |
tree | 560b3f5c6e8299f356fa3c361cc5b891d0dd6377 /sys/amd64/amd64/trap.c | |
parent | f8759facd2126e067fe09f66643af75826036a1e (diff) | |
download | src-3a5e472e17977ec486782c1b9ac62bf9623b1b34.tar.gz src-3a5e472e17977ec486782c1b9ac62bf9623b1b34.zip |
Use predefined symbol for the CR3.PCID mask.
Sponsored by: The FreeBSD Foundation
MFC after: 11 days
Notes
Notes:
svn path=/head/; revision=328202
Diffstat (limited to 'sys/amd64/amd64/trap.c')
-rw-r--r-- | sys/amd64/amd64/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index a41c1a6351e5..e99df2c3e010 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -707,8 +707,8 @@ trap_pfault(struct trapframe *frame, int usermode) */ if (pti && usermode && pg_nx != 0 && (frame->tf_err & (PGEX_P | PGEX_W | PGEX_U | PGEX_I)) == (PGEX_P | PGEX_U | PGEX_I) && - (curpcb->pcb_saved_ucr3 & ~(PMAP_PCID_OVERMAX - 1))== - (PCPU_GET(curpmap)->pm_cr3 & ~(PMAP_PCID_OVERMAX - 1))) + (curpcb->pcb_saved_ucr3 & ~PMAP_PCID_MASK)== + (PCPU_GET(curpmap)->pm_cr3 & ~PMAP_PCID_MASK)) panic("PTI: pid %d comm %s tf_err %#lx\n", p->p_pid, p->p_comm, frame->tf_err); |