From: Sean MacLennan <smaclennan@pikatech.com>
To: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>
Subject: [PATCH] powerpc: mtmsrd not defined
Date: Sun, 22 Aug 2010 18:09:58 -0400 [thread overview]
Message-ID: <20100822180958.6305f5b1@lappy.seanm.ca> (raw)
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
next reply other threads:[~2010-08-22 22:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-22 22:09 Sean MacLennan [this message]
2010-08-22 22:34 ` [PATCH] powerpc: mtmsrd not defined 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100822180958.6305f5b1@lappy.seanm.ca \
--to=smaclennan@pikatech.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).