diff options
author | Vineet Gupta <vgupta@kernel.org> | 2020-05-22 02:44:32 +0200 |
---|---|---|
committer | Vineet Gupta <vgupta@kernel.org> | 2023-08-18 19:30:47 +0200 |
commit | 58d9ceb7d9f56bd74b8e904e26511d27a4220827 (patch) | |
tree | 51b4c2267c5009b4edd694f008e03fa7140e164c /arch/arc/mm | |
parent | ARCv2: entry: rearrange pt_regs slightly (diff) | |
download | linux-58d9ceb7d9f56bd74b8e904e26511d27a4220827.tar.xz linux-58d9ceb7d9f56bd74b8e904e26511d27a4220827.zip |
ARC: pt_regs: create seperate type for ecr
Reduces duplication in each ISA specific pt_regs
Tested-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308151342.ROQ9Urvv-lkp@intel.com
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc/mm')
-rw-r--r-- | arch/arc/mm/fault.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arc/mm/fault.c b/arch/arc/mm/fault.c index 26e5823c5710..95119a5e7761 100644 --- a/arch/arc/mm/fault.c +++ b/arch/arc/mm/fault.c @@ -100,10 +100,10 @@ void do_page_fault(unsigned long address, struct pt_regs *regs) if (faulthandler_disabled() || !mm) goto no_context; - if (regs->ecr_cause & ECR_C_PROTV_STORE) /* ST/EX */ + if (regs->ecr.cause & ECR_C_PROTV_STORE) /* ST/EX */ write = 1; - else if ((regs->ecr_vec == ECR_V_PROTV) && - (regs->ecr_cause == ECR_C_PROTV_INST_FETCH)) + else if ((regs->ecr.vec == ECR_V_PROTV) && + (regs->ecr.cause == ECR_C_PROTV_INST_FETCH)) exec = 1; flags = FAULT_FLAG_DEFAULT; |