Skip to content

Commit

Permalink
Merge branch 'debug-ll' into omap-for-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Lindgren committed Feb 15, 2010
2 parents 918cae1 + 61b603b commit be26a3d
Show file tree
Hide file tree
Showing 58 changed files with 507 additions and 243 deletions.
20 changes: 10 additions & 10 deletions arch/arm/boot/compressed/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@
#if defined(CONFIG_DEBUG_ICEDCC)

#ifdef CONFIG_CPU_V6
.macro loadsp, rb
.macro loadsp, rb, tmp
.endm
.macro writeb, ch, rb
mcr p14, 0, \ch, c0, c5, 0
.endm
#elif defined(CONFIG_CPU_V7)
.macro loadsp, rb
.macro loadsp, rb, tmp
.endm
.macro writeb, ch, rb
wait: mrc p14, 0, pc, c0, c1, 0
bcs wait
mcr p14, 0, \ch, c0, c5, 0
.endm
#elif defined(CONFIG_CPU_XSCALE)
.macro loadsp, rb
.macro loadsp, rb, tmp
.endm
.macro writeb, ch, rb
mcr p14, 0, \ch, c8, c0, 0
.endm
#else
.macro loadsp, rb
.macro loadsp, rb, tmp
.endm
.macro writeb, ch, rb
mcr p14, 0, \ch, c1, c0, 0
Expand All @@ -58,7 +58,7 @@ wait: mrc p14, 0, pc, c0, c1, 0
.endm

#if defined(CONFIG_ARCH_SA1100)
.macro loadsp, rb
.macro loadsp, rb, tmp
mov \rb, #0x80000000 @ physical base address
#ifdef CONFIG_DEBUG_LL_SER3
add \rb, \rb, #0x00050000 @ Ser3
Expand All @@ -67,13 +67,13 @@ wait: mrc p14, 0, pc, c0, c1, 0
#endif
.endm
#elif defined(CONFIG_ARCH_S3C2410)
.macro loadsp, rb
.macro loadsp, rb, tmp
mov \rb, #0x50000000
add \rb, \rb, #0x4000 * CONFIG_S3C_LOWLEVEL_UART_PORT
.endm
#else
.macro loadsp, rb
addruart \rb
.macro loadsp, rb, tmp
addruart \rb, \tmp
.endm
#endif
#endif
Expand Down Expand Up @@ -1025,7 +1025,7 @@ phex: adr r3, phexbuf
strb r2, [r3, r1]
b 1b

puts: loadsp r3
puts: loadsp r3, r1
1: ldrb r2, [r0], #1
teq r2, #0
moveq pc, lr
Expand All @@ -1042,7 +1042,7 @@ puts: loadsp r3
putc:
mov r2, r0
mov r0, #0
loadsp r3
loadsp r3, r1
b 2b

memdump: mov r12, r0
Expand Down
12 changes: 6 additions & 6 deletions arch/arm/kernel/debug.S
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#if defined(CONFIG_CPU_V6)

.macro addruart, rx
.macro addruart, rx, tmp
.endm

.macro senduart, rd, rx
Expand All @@ -51,7 +51,7 @@

#elif defined(CONFIG_CPU_V7)

.macro addruart, rx
.macro addruart, rx, tmp
.endm

.macro senduart, rd, rx
Expand All @@ -71,7 +71,7 @@ wait: mrc p14, 0, pc, c0, c1, 0

#elif defined(CONFIG_CPU_XSCALE)

.macro addruart, rx
.macro addruart, rx, tmp
.endm

.macro senduart, rd, rx
Expand All @@ -98,7 +98,7 @@ wait: mrc p14, 0, pc, c0, c1, 0

#else

.macro addruart, rx
.macro addruart, rx, tmp
.endm

.macro senduart, rd, rx
Expand Down Expand Up @@ -164,7 +164,7 @@ ENDPROC(printhex2)
.ltorg

ENTRY(printascii)
addruart r3
addruart r3, r1
b 2f
1: waituart r2, r3
senduart r1, r3
Expand All @@ -180,7 +180,7 @@ ENTRY(printascii)
ENDPROC(printascii)

ENTRY(printch)
addruart r3
addruart r3, r1
mov r1, r0
mov r0, #0
b 1b
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-aaec2000/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

#include "hardware.h"
.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #0x80000000 @ physical
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <mach/hardware.h>
#include <mach/at91_dbgu.h>

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
ldreq \rx, =(AT91_BASE_SYS + AT91_DBGU) @ System peripherals (phys address)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-clps711x/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include <asm/hardware/clps7111.h>

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #CLPS7111_PHYS_BASE
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-davinci/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <linux/serial_reg.h>
#define UART_SHIFT 2

.macro addruart, rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #0x01000000 @ physical base address
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-dove/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <mach/bridge-regs.h>

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
ldreq \rx, =DOVE_SB_REGS_PHYS_BASE
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-ebsa110/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
**/

.macro addruart,rx
.macro addruart, rx, tmp
mov \rx, #0xf0000000
orr \rx, \rx, #0x00000be0
.endm
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-ep93xx/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
#include <mach/ep93xx-regs.h>

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
ldreq \rx, =EP93XX_APB_PHYS_BASE @ Physical base
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-footbridge/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#ifndef CONFIG_DEBUG_DC21285_PORT
/* For NetWinder debugging */
.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #0x7c000000 @ physical
Expand All @@ -32,7 +32,7 @@
.equ dc21285_high, ARMCSR_BASE & 0xff000000
.equ dc21285_low, ARMCSR_BASE & 0x00ffffff

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #0x42000000
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-gemini/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
#include <mach/hardware.h>

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
ldreq \rx, =GEMINI_UART_BASE @ physical
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-h720x/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
.equ io_virt, IO_BASE
.equ io_phys, IO_START

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #io_phys @ physical base address
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-integrator/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
*/

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #0x16000000 @ physical base address
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-iop13xx/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* published by the Free Software Foundation.
*/

.macro addruart, rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ mmu enabled?
moveq \rx, #0xff000000 @ physical
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-iop32x/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* published by the Free Software Foundation.
*/

.macro addruart, rx
.macro addruart, rx, tmp
mov \rx, #0xfe000000 @ physical as well as virtual
orr \rx, \rx, #0x00800000 @ location of the UART
.endm
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-iop33x/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* published by the Free Software Foundation.
*/

.macro addruart, rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ mmu enabled?
moveq \rx, #0xff000000 @ physical
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-ixp2000/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
*/

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #0xc0000000 @ Physical base
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-ixp23xx/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
#include <mach/ixp23xx.h>

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ mmu enabled?
ldreq \rx, =IXP23XX_PERIPHERAL_PHYS @ physical
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-ixp4xx/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* published by the Free Software Foundation.
*/

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #0xc8000000
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-kirkwood/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <mach/bridge-regs.h>

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
ldreq \rx, =KIRKWOOD_REGS_PHYS_BASE
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-ks8695/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <mach/hardware.h>
#include <mach/regs-uart.h>

.macro addruart, rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
ldreq \rx, =KS8695_UART_PA @ physical base address
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-l7200/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
.equ io_virt, IO_BASE
.equ io_phys, IO_START

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #io_phys @ physical base address
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-lh7a40x/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@ It is not known if this will be appropriate for every 40x
@ board.

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
mov \rx, #0x00000700 @ offset from base
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-loki/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <mach/loki.h>

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
ldreq \rx, =LOKI_REGS_PHYS_BASE
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-mmp/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include <mach/addr-map.h>

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
ldreq \rx, =APB_PHYS_BASE @ physical
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-msm/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <mach/msm_iomap.h>

#ifdef CONFIG_MSM_DEBUG_UART
.macro addruart,rx
.macro addruart, rx, tmp
@ see if the MMU is enabled and select appropriate base address
mrc p15, 0, \rx, c1, c0
tst \rx, #1
Expand All @@ -40,7 +40,7 @@
beq 1001b
.endm
#else
.macro addruart,rx
.macro addruart, rx, tmp
.endm

.macro senduart,rd,rx
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-mv78xx0/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <mach/mv78xx0.h>

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
ldreq \rx, =MV78XX0_REGS_PHYS_BASE
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-netx/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "hardware.h"

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #0x00100000 @ physical
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-nomadik/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
*/

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #0x10000000 @ physical base address
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-ns9xxx/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include <mach/regs-board-a9m9750dev.h>

.macro addruart,rx
.macro addruart, rx, tmp
mrc p15, 0, \rx, c1, c0
tst \rx, #1
ldreq \rx, =NS9XXX_CSxSTAT_PHYS(0)
Expand Down
Loading

0 comments on commit be26a3d

Please sign in to comment.