sh: Setup the frame register in asm code
[deliverable/linux.git] / arch / sh / include / asm / entry-macros.S
index 1bdd93891cd7567ce2baad7963106436cad6852c..64fd0de24dafe244ac6b9dc3e94ffbe9e8795ae8 100644 (file)
 #else
 # define PREF(x)       nop
 #endif
+
+       /*
+        * Macro for use within assembly. Because the DWARF unwinder
+        * needs to use the frame register to unwind the stack, we
+        * need to setup r14 with the value of the stack pointer as
+        * the return address is usually on the stack somewhere.
+        */
+       .macro  setup_frame_reg
+#ifdef CONFIG_DWARF_UNWINDER
+       mov     r15, r14
+#endif
+       .endm
This page took 0.0247 seconds and 5 git commands to generate.