From: Vineet Gupta Date: Mon, 17 Jun 2013 06:05:15 +0000 (+0530) Subject: ARC: [tlb-miss] No need to check for READ access in I-TLB Miss handler X-Git-Tag: next-20130619~114^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=10007ff33dde9ba7f0230c7afeca1f166983e350;p=karo-tx-linux.git ARC: [tlb-miss] No need to check for READ access in I-TLB Miss handler Signed-off-by: Vineet Gupta --- diff --git a/arch/arc/mm/tlbex.S b/arch/arc/mm/tlbex.S index 8d61fdf7a43b..06cd4f98d765 100644 --- a/arch/arc/mm/tlbex.S +++ b/arch/arc/mm/tlbex.S @@ -277,8 +277,8 @@ ARC_ENTRY EV_TLBMissI ;---------------------------------------------------------------- ; VERIFY_PTE: Check if PTE permissions approp for executing code cmp_s r2, VMALLOC_START - mov.lo r2, (_PAGE_PRESENT | _PAGE_U_READ | _PAGE_U_EXECUTE) - mov.hs r2, (_PAGE_PRESENT | _PAGE_K_READ | _PAGE_K_EXECUTE) + mov.lo r2, (_PAGE_PRESENT | _PAGE_U_EXECUTE) + mov.hs r2, (_PAGE_PRESENT | _PAGE_K_EXECUTE) and r3, r0, r2 ; Mask out NON Flag bits from PTE xor.f r3, r3, r2 ; check ( ( pte & flags_test ) == flags_test )