Commit 42cb999d authored by Tony Lindgren's avatar Tony Lindgren

ARM: OMAP: Undo previous v6 userspace patch and apply RMK's version

The previous patch to make userspace work again on v6 had a problem
with vectors at 0xffff0000. RMK's version fixes the problem in the
patch that added L_PTE_ASID.
parent 12d8b2df
...@@ -459,7 +459,7 @@ static void __init build_mem_type_table(void) ...@@ -459,7 +459,7 @@ static void __init build_mem_type_table(void)
for (i = 0; i < 16; i++) { for (i = 0; i < 16; i++) {
unsigned long v = pgprot_val(protection_map[i]); unsigned long v = pgprot_val(protection_map[i]);
v &= (~(PTE_BUFFERABLE|PTE_CACHEABLE)) | user_pgprot; v = (v & ~(PTE_BUFFERABLE|PTE_CACHEABLE)) | user_pgprot;
protection_map[i] = __pgprot(v); protection_map[i] = __pgprot(v);
} }
......
...@@ -141,7 +141,7 @@ ENTRY(cpu_v6_set_pte) ...@@ -141,7 +141,7 @@ ENTRY(cpu_v6_set_pte)
orreq r2, r2, #PTE_EXT_APX orreq r2, r2, #PTE_EXT_APX
tst r1, #L_PTE_USER tst r1, #L_PTE_USER
orrne r2, r2, #PTE_EXT_AP1 | PTE_EXT_NG orrne r2, r2, #PTE_EXT_AP1
bicne r2, r2, #PTE_EXT_AP0 bicne r2, r2, #PTE_EXT_AP0
tstne r1, #L_PTE_WRITE tstne r1, #L_PTE_WRITE
tstne r1, #L_PTE_DIRTY tstne r1, #L_PTE_DIRTY
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment