Add last_fault_code used in pmap-v6.c if kernel is compiled with "option DEBUG"
This commit is contained in:
parent
fbae9a50c4
commit
5408fdf48d
@ -67,6 +67,10 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
extern char fusubailout[];
|
||||
|
||||
#ifdef DEBUG
|
||||
int last_fault_code; /* For the benefit of pmap_fault_fixup() */
|
||||
#endif
|
||||
|
||||
struct ksig {
|
||||
int sig;
|
||||
u_long code;
|
||||
@ -457,6 +461,10 @@ abort_handler(struct trapframe *tf, int prefetch)
|
||||
if (prefetch)
|
||||
ftype |= VM_PROT_EXECUTE;
|
||||
|
||||
#ifdef DEBUG
|
||||
last_fault_code = fsr;
|
||||
#endif
|
||||
|
||||
#ifndef ARM_NEW_PMAP
|
||||
if (pmap_fault_fixup(vmspace_pmap(td->td_proc->p_vmspace), va, ftype,
|
||||
usermode)) {
|
||||
|
Loading…
Reference in New Issue
Block a user