diff options
author | Anshuman Khandual <anshuman.khandual@arm.com> | 2018-09-22 21:09:52 +0530 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2018-10-01 13:47:12 +0100 |
commit | 00bbd5d9016d49fa8dddef020a06b94fedca9148 (patch) | |
tree | b10a184f3deea44f9c09e4c7b64f19691cf8488c /arch | |
parent | 95b861a4a6d94f64d5242605569218160ebacdbe (diff) | |
download | linux-stable-00bbd5d9016d49fa8dddef020a06b94fedca9148.tar.gz linux-stable-00bbd5d9016d49fa8dddef020a06b94fedca9148.tar.bz2 linux-stable-00bbd5d9016d49fa8dddef020a06b94fedca9148.zip |
arm64/mm: Use ESR_ELx_FSC macro while decoding fault exception
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c index 6342f1793c70..6d9acd910104 100644 --- 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 |