linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: mtmsrd not defined
@ 2010-08-22 22:09 Sean MacLennan
  2010-08-22 22:34 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 13+ messages in thread
From: Sean MacLennan @ 2010-08-22 22:09 UTC (permalink / raw)
  To: linuxppc-dev

Let's try a patch to get the ball rolling. 

ldstfp.S does not compile if mtmsrd not defined. But is it only defined
for BOOK3S_64. This defines mtmsrd to be mtmsr on all but BOOK3S_64.
This solves the compile problem... but I am not sure how to test it.

I am also not sure if this is the best place to define it. If the
mapping of mtmsrd to mtmsr is correct, maybe it should be in asm/reg.h?

Signed-off-by: Sean MacLennan <smaclennan@pikatech.com>
---
diff --git a/arch/powerpc/lib/ldstfp.S b/arch/powerpc/lib/ldstfp.S
index f644863..df8a03b 100644
--- a/arch/powerpc/lib/ldstfp.S
+++ b/arch/powerpc/lib/ldstfp.S
@@ -17,6 +17,10 @@
 #include <asm/asm-offsets.h>
 #include <linux/errno.h>
 
+#ifndef CONFIG_PPC_BOOK3S_64
+#define mtmsrd mtmsr
+#endif
+
 #define STKFRM	(PPC_MIN_STKFRM + 16)
 
 	.macro	extab	instr,handler

Cheers,
   Sean

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-09-01 17:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-22 22:09 [PATCH] powerpc: mtmsrd not defined Sean MacLennan
2010-08-22 22:34 ` Benjamin Herrenschmidt
2010-08-22 22:48   ` Sean MacLennan
2010-08-31  4:37     ` Paul Mackerras
2010-08-31 16:17     ` Kumar Gala
2010-08-31 17:46       ` Sean MacLennan
2010-09-01  2:55         ` Sean MacLennan
2010-09-01  6:45           ` Kumar Gala
2010-09-01  6:57             ` Sean MacLennan
2010-09-01  8:02           ` Paul Mackerras
2010-09-01 13:01             ` Kumar Gala
2010-09-01 17:21               ` Sean MacLennan
2010-09-01 16:40             ` Sean MacLennan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).