MIPS: Yosemite, Emma: Fix off-by-two in arcs_cmdline buffer size check
[linux-2.6/linux-mips.git] / arch / arm / mach-prima2 / include / mach / debug-macro.S
blobcd97492bb075f5f355afcb0a811103b322f4f25d
1 /*
2  * arch/arm/mach-prima2/include/mach/debug-macro.S
3  *
4  * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
5  *
6  * Licensed under GPLv2 or later.
7  */
9 #include <mach/hardware.h>
10 #include <mach/uart.h>
12         .macro  addruart, rp, rv, tmp
13         ldr     \rp, =SIRFSOC_UART1_PA_BASE             @ physical
14         ldr     \rv, =SIRFSOC_UART1_VA_BASE             @ virtual
15         .endm
17         .macro  senduart,rd,rx
18         str     \rd, [\rx, #SIRFSOC_UART_TXFIFO_DATA]
19         .endm
21         .macro  busyuart,rd,rx
22         .endm
24         .macro  waituart,rd,rx
25 1001:   ldr     \rd, [\rx, #SIRFSOC_UART_TXFIFO_STATUS]
26         tst     \rd, #SIRFSOC_UART1_TXFIFO_EMPTY
27         beq     1001b
28         .endm