Path: blob/master/arch/arm/mach-netx/include/mach/debug-macro.S
10820 views
/* arch/arm/mach-netx/include/mach/debug-macro.S1*2* Debugging macro include header3*4* Copyright (C) 1994-1999 Russell King5* Moved from linux/arch/arm/kernel/debug.S by Ben Dooks6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*11*/1213#include "hardware.h"1415.macro addruart, rp, rv16mov \rp, #0x00000a0017orr \rv, \rp, #io_p2v(0x00100000) @ virtual18orr \rp, \rp, #0x00100000 @ physical19.endm2021.macro senduart,rd,rx22str \rd, [\rx, #0]23.endm2425.macro busyuart,rd,rx261002: ldr \rd, [\rx, #0x18]27tst \rd, #(1 << 3)28bne 1002b29.endm3031.macro waituart,rd,rx321001: ldr \rd, [\rx, #0x18]33tst \rd, #(1 << 3)34bne 1001b35.endm363738