]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARC: [tlb-miss] No need to check for READ access in I-TLB Miss handler
authorVineet Gupta <vgupta@synopsys.com>
Mon, 17 Jun 2013 06:05:15 +0000 (11:35 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 17 Jun 2013 13:02:24 +0000 (18:32 +0530)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/tlbex.S

index 8d61fdf7a43bf6b39a5fa86980c3d164d2571492..06cd4f98d765badfa869a6967f73e1d0bad9ae8b 100644 (file)
@@ -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 )