svn commit: r328202 - head/sys/amd64/amd64
Konstantin Belousov
kib at FreeBSD.org
Sat Jan 20 17:46:10 UTC 2018
Author: kib
Date: Sat Jan 20 17:46:09 2018
New Revision: 328202
URL: https://svnweb.freebsd.org/changeset/base/328202
Log:
Use predefined symbol for the CR3.PCID mask.
Sponsored by: The FreeBSD Foundation
MFC after: 11 days
Modified:
head/sys/amd64/amd64/trap.c
Modified: head/sys/amd64/amd64/trap.c
==============================================================================
--- head/sys/amd64/amd64/trap.c Sat Jan 20 17:02:17 2018 (r328201)
+++ head/sys/amd64/amd64/trap.c Sat Jan 20 17:46:09 2018 (r328202)
@@ -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);
More information about the svn-src-all
mailing list