Skip to content

Commit

Permalink
RealView: Change the IO_ADDRESS macro
Browse files Browse the repository at this point in the history
This patch changes the IO_ADDRESS macro for the RealView platforms to
accomodate a wider range of physical addresses on PB11MPCore.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
  • Loading branch information
Catalin Marinas committed Apr 18, 2008
1 parent 41267e2 commit 51faf9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/asm-arm/arch-realview/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
mrc p15, 0, \rx, c1, c0
tst \rx, #1 @ MMU enabled?
moveq \rx, #0x10000000
movne \rx, #0xf1000000 @ virtual base
movne \rx, #0xf0000000 @ virtual base
orr \rx, \rx, #0x00009000
.endm

Expand Down
2 changes: 1 addition & 1 deletion include/asm-arm/arch-realview/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <asm/sizes.h>

/* macro to get at IO space when running virtually */
#define IO_ADDRESS(x) ((((x) & 0x0effffff) | (((x) >> 4) & 0x0f000000)) + 0xf0000000)
#define IO_ADDRESS(x) (((x) & 0x0fffffff) + 0xf0000000)
#define __io_address(n) __io(IO_ADDRESS(n))

#endif

0 comments on commit 51faf9b

Please sign in to comment.