[U-Boot] [PATCH v2 3/4] microblaze: Disable all cpu features before reset
Michal Simek
michal.simek at xilinx.com
Tue Apr 23 15:33:38 CEST 2013
From: Michal Simek <monstr at monstr.eu>
Fix microblaze soft reset function and disable
all cpu features. Especially disable caches because
IRQs were off by disable_interrupts().
Reported-by: John Williams <john.williams at xilinx.com>
Signed-off-by: Michal Simek <monstr at monstr.eu>
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
Changes in v2: None
board/xilinx/microblaze-generic/microblaze-generic.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c
index 8ba99f9..1af0b86 100644
--- a/board/xilinx/microblaze-generic/microblaze-generic.c
+++ b/board/xilinx/microblaze-generic/microblaze-generic.c
@@ -40,7 +40,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#endif
puts ("Reseting board\n");
- asm ("bra r0");
+ __asm__ __volatile__ (" mts rmsr, r0;" \
+ "bra r0");
return 0;
}
--
1.8.2.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130423/350400f5/attachment.pgp>
More information about the U-Boot
mailing list