projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95b861a
)
arm64/mm: Use ESR_ELx_FSC macro while decoding fault exception
author
Anshuman Khandual
<anshuman.khandual@arm.com>
Sat, 22 Sep 2018 15:39:52 +0000
(21:09 +0530)
committer
Catalin Marinas
<catalin.marinas@arm.com>
Mon, 1 Oct 2018 12:47:12 +0000
(13:47 +0100)
Just replace hard code value of 63 (0x111111) with an existing macro
ESR_ELx_FSC when parsing for the status code during fault exception.
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/fault.c
patch
|
blob
|
history
diff --git
a/arch/arm64/mm/fault.c
b/arch/arm64/mm/fault.c
index 6342f1793c7062efe2e897d4bdcfe7ce619b8f3b..6d9acd910104d5773a4d939b783523185ec6e942 100644
(file)
--- a/
arch/arm64/mm/fault.c
+++ b/
arch/arm64/mm/fault.c
@@
-59,7
+59,7
@@
static const struct fault_info fault_info[];
static inline const struct fault_info *esr_to_fault_info(unsigned int esr)
{
- return fault_info + (esr &
63
);
+ return fault_info + (esr &
ESR_ELx_FSC
);
}
#ifdef CONFIG_KPROBES