]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/arch-ebsa285/debug-macro.S
[ARM] 1/4: Move include of asm/hardware.h to asm-arm/arch-*/io.h
[linux-2.6-omap-h63xx.git] / include / asm-arm / arch-ebsa285 / debug-macro.S
index 237853db6e2f46ccf034909362df7b6255573dc5..97d15fc629af867c389509b71e4da6057a0e9d83 100644 (file)
                .equ    dc21285_low,  ARMCSR_BASE & 0x00ffffff
 
                .macro  addruart,rx
-               mov     \rx, #dc21285_high
+               mrc     p15, 0, \rx, c1, c0
+               tst     \rx, #1                 @ MMU enabled?
+               moveq   \rx, #0x42000000
+               movne   \rx, #dc21285_high
                .if     dc21285_low
-               orr     \rx, \rx, #dc21285_low
+               orrne   \rx, \rx, #dc21285_low
                .endif
                .endm