Thread (3 messages) 3 messages, 2 authors, 2013-08-13

Re: [PATCH] powerpc: Avoid link stack corruption for MMU on exceptions

flat view

From: Stephen Rothwell <hidden>
Date: 2013-08-13 05:06:20

Hi Mikey,

On Tue, 13 Aug 2013 12:20:22 +1000 Michael Neuling [off-list ref] wrote:
quoted hunk ↗ jump to hunk
@@ -101,14 +102,14 @@
  * kernel, we need to use LR to get to the 2nd level handler.  So, save/restore
                             ^^
CTR
quoted hunk ↗ jump to hunk
  * it when required.
  */
-#define SAVE_LR(reg, area)	mflr	reg ; 	std	reg,area+EX_LR(r13)
-#define GET_LR(reg, area) 			ld	reg,area+EX_LR(r13)
-#define RESTORE_LR(reg, area)	ld	reg,area+EX_LR(r13) ; mtlr reg
+#define SAVE_CTR(reg, area)	mfctr	reg ; 	std	reg,area+EX_CTR(r13)
+#define GET_CTR(reg, area) 			ld	reg,area+EX_CTR(r13)
+#define RESTORE_CTR(reg, area)	ld	reg,area+EX_CTR(r13) ; mtctr reg
 #else
 /* ...else LR is unused and in register. */
              ^^
and again

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help