[PATCH] [POWERPC v2] Add a comment about the Book-e tophys/tovirt macros

Kumar Gala galak at kernel.crashing.org
Sat May 17 05:20:06 EST 2008


The Book-E versions of tophys/tovirt are not simple noops to
ensure compatibility with their "classic" ppc brethren.

---

Fix my grammar.. why I bother is beyond me.

- 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..668c887 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 ensure compatiblity 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




More information about the Linuxppc-dev mailing list