mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-04 01:57:59 +00:00
4e6d488af3
Otherwise more complicated uart configuration won't be possible. We can use r1 for tmp register for both head.S and debug.S. NOTE: This patch depends on another patch to add the the tmp register into all debug-macro.S files. That can be done with: $ sed -i -e "s/addruart,rx|addruart, rx/addruart, rx, tmp/" arch/arm/*/include/*/debug-macro.S Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
23 lines
625 B
ArmAsm
23 lines
625 B
ArmAsm
/*
|
|
*
|
|
* arch-arm/mach-u300/include/mach/debug-macro.S
|
|
*
|
|
*
|
|
* Copyright (C) 2006-2009 ST-Ericsson AB
|
|
* License terms: GNU General Public License (GPL) version 2
|
|
* Debugging macro include header.
|
|
* Author: Linus Walleij <linus.walleij@stericsson.com>
|
|
*/
|
|
#include <mach/hardware.h>
|
|
|
|
.macro addruart, rx, tmp
|
|
/* If we move the adress using MMU, use this. */
|
|
mrc p15, 0, \rx, c1, c0
|
|
tst \rx, #1 @ MMU enabled?
|
|
ldreq \rx, = U300_SLOW_PER_PHYS_BASE @ MMU off, physical address
|
|
ldrne \rx, = U300_SLOW_PER_VIRT_BASE @ MMU on, virtual address
|
|
orr \rx, \rx, #0x00003000
|
|
.endm
|
|
|
|
#include <asm/hardware/debug-pl01x.S>
|