Skip to content
Snippets Groups Projects
Commit 8848668e authored by Michal Simek's avatar Michal Simek Committed by Michal Simek
Browse files

microblaze: Disable all cpu features before reset


Fix microblaze soft reset function and disable
all cpu features. Especially disable caches because
IRQs were off by disable_interrupts().

Reported-by: default avatarJohn Williams <john.williams@xilinx.com>
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 78376452
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -40,7 +40,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#endif #endif
puts ("Reseting board\n"); puts ("Reseting board\n");
asm ("bra r0"); __asm__ __volatile__ (" mts rmsr, r0;" \
"bra r0");
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment