MCPcopy Create free account
hub / github.com/F-Stack/f-stack / trap_is_pti

Function trap_is_pti

freebsd/amd64/amd64/trap.c:657–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657static bool
658trap_is_pti(struct trapframe *frame)
659{
660
661 return (PCPU_GET(curpmap)->pm_ucr3 != PMAP_NO_CR3 &&
662 pg_nx != 0 && (frame->tf_err & (PGEX_P | PGEX_W |
663 PGEX_U | PGEX_I)) == (PGEX_P | PGEX_U | PGEX_I) &&
664 (curpcb->pcb_saved_ucr3 & ~CR3_PCID_MASK) ==
665 (PCPU_GET(curpmap)->pm_cr3 & ~CR3_PCID_MASK));
666}
667
668/*
669 * Handle all details of a page fault.

Callers 1

trap_pfaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected