aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-12-08 22:22:42 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-12-16 14:50:56 +1100
commit266573939475c2ad4c93182a0775b8aaff348642 (patch)
tree5cd92a240d604dbae116150463eca201b1a459fb /include
parent87a470c28d9c9cd3430093d1e826a472343c88e0 (diff)
downloadskiboot-266573939475c2ad4c93182a0775b8aaff348642.zip
skiboot-266573939475c2ad4c93182a0775b8aaff348642.tar.gz
skiboot-266573939475c2ad4c93182a0775b8aaff348642.tar.bz2
asm/cvc_entry.S: r2 save fix
The TOC save area for the current stack frame should be used to save r2, not the caller's frame. Acked-by: Stewart Smith <stewart@flamingspork.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/stack.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stack.h b/include/stack.h
index 3ad52d6..09d22ad 100644
--- a/include/stack.h
+++ b/include/stack.h
@@ -11,6 +11,8 @@
#define STACK_ENTRY_RESET 0x0100 /* System reset */
#define STACK_ENTRY_SOFTPATCH 0x1500 /* Soft patch (denorm emulation) */
+#define STACK_TOC_OFFSET 40
+
/* Safety/ABI gap at top of stack */
#define STACK_TOP_GAP 0x100