diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2010-07-26 06:20:41 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-27 05:48:41 -0400 |
commit | b8ab5397bcbd92e3fd4a9770e0bf59315fa38dab (patch) | |
tree | 4def9ea84d54ce112c91e906e10fb8756151327c /arch/arm/mm/fault.c | |
parent | 993bf4ec8c2a2b7979389ab196bf2fe217117158 (diff) |
ARM: 6268/1: ARMv6K and ARMv7 use fault statuses 3 and 6 as Access Flag fault
Statuses 3 (0b00011) and 6 (0x00110) of DFSR are Access Flags faults on
ARMv6K and ARMv7. Let's patch fsr_info[] at runtime if we are on ARMv7
or later.
Unfortunately, we don't have runtime check for 'K' extension, so we
can't check for it.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/fault.c')
-rw-r--r-- | arch/arm/mm/fault.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index 5835e63454ff..23b0b03af5ea 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c | |||
@@ -607,6 +607,17 @@ static int __init exceptions_init(void) | |||
607 | "I-cache maintenance fault"); | 607 | "I-cache maintenance fault"); |
608 | } | 608 | } |
609 | 609 | ||
610 | if (cpu_architecture() >= CPU_ARCH_ARMv7) { | ||
611 | /* | ||
612 | * TODO: Access flag faults introduced in ARMv6K. | ||
613 | * Runtime check for 'K' extension is needed | ||
614 | */ | ||
615 | hook_fault_code(3, do_bad, SIGSEGV, SEGV_MAPERR, | ||
616 | "section access flag fault"); | ||
617 | hook_fault_code(6, do_bad, SIGSEGV, SEGV_MAPERR, | ||
618 | "section access flag fault"); | ||
619 | } | ||
620 | |||
610 | return 0; | 621 | return 0; |
611 | } | 622 | } |
612 | 623 | ||