* [PATCH] [POWERPC] Add a comment about the Book-e tophys/tovirt macros
@ 2008-05-16 19:17 Kumar Gala
0 siblings, 0 replies; only message in thread
From: Kumar Gala @ 2008-05-16 19:17 UTC (permalink / raw)
To: linuxppc-dev
The Book-E versions of tophys/tovirt are not simple no ops to
ensure compatibility with their "classic" ppc brethren.
---
Added as Hollis and Josh's request. This is in my powerpc-next tree.
- k
include/asm-powerpc/ppc_asm.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/asm-powerpc/ppc_asm.h b/include/asm-powerpc/ppc_asm.h
index 2dbd4e7..70fc433 100644
--- a/include/asm-powerpc/ppc_asm.h
+++ b/include/asm-powerpc/ppc_asm.h
@@ -356,6 +356,11 @@ END_FTR_SECTION_IFCLR(CPU_FTR_601)
#define toreal(rd)
#define fromreal(rd)
+/*
+ * We use addis to sure compatible with the "classic" ppc versions
+ * of these macros that might have rs as 0, which means a value of 0
+ * not r0
+ */
#define tophys(rd,rs) \
addis rd,rs,0
--
1.5.4.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-16 19:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-16 19:17 [PATCH] [POWERPC] Add a comment about the Book-e tophys/tovirt macros Kumar Gala
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).