Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -64,6 +64,10 @@ real_start:
#endif
#endif


	mts	rmsr, r0
	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'
 * According to Xilinx, msrclr instruction behaves like 'mfs rX,rpc'
 * if the msrclr instruction is not enabled. We use this to detect
 * if the msrclr instruction is not enabled. We use this to detect