Use predefined symbol for the CR3.PCID mask.
Sponsored by: The FreeBSD Foundation MFC after: 11 days
This commit is contained in:
parent
bcd3d3b8e5
commit
14962b8ee9
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user