diff options
author | ian <ian@FreeBSD.org> | 2015-02-13 23:32:03 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2015-02-13 23:32:03 +0000 |
commit | fc13bac9c05ad9ccb791b8a08465889d495a5ea6 (patch) | |
tree | d76f42fe93523f6185569d43fe0b6778541ea152 /sys/arm | |
parent | c961e58ab5f4ae11622eadd950a2ff7f2db27d8f (diff) | |
download | FreeBSD-src-fc13bac9c05ad9ccb791b8a08465889d495a5ea6.zip FreeBSD-src-fc13bac9c05ad9ccb791b8a08465889d495a5ea6.tar.gz |
MFC r277523: Add last_fault_code when DEBUG is defined.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/trap-v6.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/arm/arm/trap-v6.c b/sys/arm/arm/trap-v6.c index 463b1fa..b9cad50 100644 --- a/sys/arm/arm/trap-v6.c +++ b/sys/arm/arm/trap-v6.c @@ -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)) { |