2009-04-23 17:22:13 +08:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* 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>
|
|
|
|
|
2010-02-02 06:26:53 +08:00
|
|
|
.macro addruart, rx, tmp
|
tree-wide: Assorted spelling fixes
In particular, several occurances of funny versions of 'success',
'unknown', 'therefore', 'acknowledge', 'argument', 'achieve', 'address',
'beginning', 'desirable', 'separate' and 'necessary' are fixed.
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Joe Perches <joe@perches.com>
Cc: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2010-02-03 08:01:28 +08:00
|
|
|
/* If we move the address using MMU, use this. */
|
2009-04-23 17:22:13 +08:00
|
|
|
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>
|