mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 2/5] MIPS: qemu-malta: don't use BoardID address for executable code
Date: Sat, 26 Oct 2013 13:15:04 +0400	[thread overview]
Message-ID: <1382778907-13328-3-git-send-email-antonynpavlov@gmail.com> (raw)
In-Reply-To: <1382778907-13328-1-git-send-email-antonynpavlov@gmail.com>

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@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2013-10-26  9:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-26  9:15 [PATCH 0/5] misc qemu-malta patches Antony Pavlov
2013-10-26  9:15 ` [PATCH 1/5] MIPS: qemu-malta: doc: drop broken mips.com link Antony Pavlov
2013-10-26  9:15 ` Antony Pavlov [this message]
2013-10-26  9:15 ` [PATCH 3/5] MIPS: qemu-malta: update qemu-malta.dox Antony Pavlov
2013-10-26  9:15 ` [PATCH 4/5] MIPS: qemu-malta: use YAMON-style GT64120 memory map Antony Pavlov
2013-10-26  9:15 ` [PATCH 5/5] MIPS: qemu-malta: doc: add gxemul documentation Antony Pavlov
2013-10-28  8:02 ` [PATCH 0/5] misc qemu-malta patches Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1382778907-13328-3-git-send-email-antonynpavlov@gmail.com \
    --to=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox