[PATCH 2/5] MIPS: qemu-malta: don't use BoardID address for executable code
Antony Pavlov
antonynpavlov at gmail.com
Sat Oct 26 05:15:04 EDT 2013
On MIPS Technologies boards 0x1fc00010 address
is reserved for BoardID. The hardware or emulator
intercepts accesses to this address and we can't use
this address for storing code.
Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
arch/mips/boards/qemu-malta/include/board/board_pbl_start.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/mips/boards/qemu-malta/include/board/board_pbl_start.h b/arch/mips/boards/qemu-malta/include/board/board_pbl_start.h
index bcd9789..a5f29e5 100644
--- a/arch/mips/boards/qemu-malta/include/board/board_pbl_start.h
+++ b/arch/mips/boards/qemu-malta/include/board/board_pbl_start.h
@@ -24,6 +24,18 @@
.set push
.set noreorder
+ b __start
+ nop
+
+ /*
+ On MIPS Technologies boards
+ 0x1fc00010 address is reserved for BoardID
+ */
+ .org 0x10
+ .word 0xffffffff
+ .word 0xffffffff
+
+__start:
mips_disable_interrupts
/* cpu specific setup ... */
--
1.8.4.rc3
More information about the barebox
mailing list