]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/asm-ppc64/mmu.h
[PATCH] ppc64: remove another fixed address constraint
[karo-tx-linux.git] / include / asm-ppc64 / mmu.h
index 8891180368031d6586680635f49992c0e316ad03..70348a85131396773e8b1a115325246211f53e7d 100644 (file)
@@ -338,6 +338,9 @@ static inline unsigned long get_vsid(unsigned long context, unsigned long ea)
                             | (ea >> SID_SHIFT));
 }
 
+#define VSID_SCRAMBLE(pvsid)   (((pvsid) * VSID_MULTIPLIER) % VSID_MODULUS)
+#define KERNEL_VSID(ea)                VSID_SCRAMBLE(GET_ESID(ea))
+
 #endif /* __ASSEMBLY */
 
 #endif /* _PPC64_MMU_H_ */