summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2022-06-24 14:15:00 +0200
committerMichal Simek <michal.simek@amd.com>2022-06-24 14:15:00 +0200
commit532ad5f84163cdf010e0181e2f9c3fbb1eac88d6 (patch)
tree50ca703e896d85c1b8a72560cf6b759499d811d5 /arch
parent1918c4166eea9f0dfe135c4cb9fcd794825522c1 (diff)
microblaze: Change stack protection address to new stack address
SLR low address is still setup to 0 that's why only high limit should be updated. STACK_SIZE macro is present and could be possible used for low address alignment but it is not done by this patch. Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/c00cb843df848703b760a65934ed3ce31fafcf19.1655299267.git.michal.simek@amd.com
Diffstat (limited to 'arch')
-rw-r--r--arch/microblaze/cpu/start.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S
index a35d8d8ea2..2aae4a0b7c 100644
--- a/arch/microblaze/cpu/start.S
+++ b/arch/microblaze/cpu/start.S
@@ -268,6 +268,7 @@ relocate_code:
* r7 - reloc_addr
*/
addi r1, r5, 0 /* Start to use new SP */
+ mts rshr, r1
addi r31, r6, 0 /* Start to use new GD */
add r23, r0, r7 /* Move reloc addr to r23 */