Commit 34b9c07a authored by Michal Simek's avatar Michal Simek

microblaze: Disable stack protection from bootloader

Microblaze without MMU can use stack protection in bootloader
and kernel should clear this setting ASAP.
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 17578ea1
......@@ -64,6 +64,10 @@ real_start:
#endif
mts rmsr, r0
/* Disable stack protection from bootloader */
mts rslr, r0
addi r8, r0, 0xFFFFFFF
mts rshr, r8
/*
* According to Xilinx, msrclr instruction behaves like 'mfs rX,rpc'
* if the msrclr instruction is not enabled. We use this to detect
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment