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

Function get_mapping_info

freebsd/mips/mips/trap.c:1381–1396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1379#endif
1380
1381static void
1382get_mapping_info(vm_offset_t va, pd_entry_t **pdepp, pt_entry_t **ptepp)
1383{
1384 pt_entry_t *ptep;
1385 pd_entry_t *pdep;
1386 struct proc *p = curproc;
1387
1388 pdep = (&(p->p_vmspace->vm_pmap.pm_segtab[(va >> SEGSHIFT) & (NPDEPG - 1)]));
1389 if (*pdep)
1390 ptep = pmap_pte(&p->p_vmspace->vm_pmap, va);
1391 else
1392 ptep = (pt_entry_t *)0;
1393
1394 *pdepp = pdep;
1395 *ptepp = ptep;
1396}
1397
1398static void
1399log_illegal_instruction(const char *msg, struct trapframe *frame)

Callers 2

log_illegal_instructionFunction · 0.85
log_bad_page_faultFunction · 0.85

Calls 1

pmap_pteFunction · 0.70

Tested by

no test coverage detected