[PATCH] ARM: fix debug macros
Fix debug EBSA285 and RiscPC debugging macros to detect whether the MMU is enabled. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
This commit is contained in:
Родитель
684f970e2f
Коммит
cc56449f53
|
@ -45,9 +45,12 @@
|
||||||
.equ dc21285_low, ARMCSR_BASE & 0x00ffffff
|
.equ dc21285_low, ARMCSR_BASE & 0x00ffffff
|
||||||
|
|
||||||
.macro addruart,rx
|
.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
|
.if dc21285_low
|
||||||
orr \rx, \rx, #dc21285_low
|
orrne \rx, \rx, #dc21285_low
|
||||||
.endif
|
.endif
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.macro addruart,rx
|
.macro addruart,rx
|
||||||
mov \rx, #0xe0000000
|
mrc p15, 0, \rx, c1, c0
|
||||||
|
tst \rx, #1 @ MMU enabled?
|
||||||
|
moveq \rx, #0x03000000
|
||||||
|
movne \rx, #0xe0000000
|
||||||
orr \rx, \rx, #0x00010000
|
orr \rx, \rx, #0x00010000
|
||||||
orr \rx, \rx, #0x00000fe0
|
orr \rx, \rx, #0x00000fe0
|
||||||
.endm
|
.endm
|
||||||
|
|
Загрузка…
Ссылка в новой задаче