dragon-nx32: After unstashing stack, use new stack pointer right away
authorTormod Volden <debian.tormod@gmail.com>
Sun, 19 Apr 2015 16:43:45 +0000 (18:43 +0200)
committerAlan Cox <alan@linux.intel.com>
Sun, 19 Apr 2015 17:46:00 +0000 (18:46 +0100)
The following jsr will otherwise possibly clobber the stack.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Kernel/platform-dragon-nx32/tricks.s

index 85baf85..c621bb9 100644 (file)
@@ -108,6 +108,9 @@ stashb      ldd ,x++
        bne stashb
        ldy _swapstack+2
 
+       ; we have now new stacks so get new stack pointer before any jsr
+       lds U_DATA__U_SP
+
        ; get back kernel page so that we see process table
        jsr map_kernel