mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
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: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
17578ea198
commit
34b9c07a3b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user