summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64/addrspace.h
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-06-06 23:12:52 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-06-06 23:12:52 +0000
commit0d5a4cf6690017448515a74368805422e825603d (patch)
treeba8541b776885b26d4107d55626cfaeb882c5644 /include/asm-mips64/addrspace.h
parentae7b68de40ce4d1933c7e0766d2f01e9babc4be8 (diff)
Get the mapped kernel working for SMP kernels. While launching slaves,
pass the proper address for the slave bootstrap routine based on where the kernel is compiled at.
Diffstat (limited to 'include/asm-mips64/addrspace.h')
-rw-r--r--include/asm-mips64/addrspace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-mips64/addrspace.h b/include/asm-mips64/addrspace.h
index 90c33a22a..bfbdebb1c 100644
--- a/include/asm-mips64/addrspace.h
+++ b/include/asm-mips64/addrspace.h
@@ -109,6 +109,7 @@
#define PHYS_TO_COMPATK1(x) ((x) | COMPAT_K1BASE32) /* 32-bit compat k1 */
#endif
-#define KDM_TO_PHYS(x) ((x) & TO_PHYS_MASK)
+#define KDM_TO_PHYS(x) ((unsigned long)(x) & TO_PHYS_MASK)
+#define PHYS_TO_K0(x) ((unsigned long)(x) | K0BASE)
#endif /* _ASM_ADDRSPACE_H */