summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-01-28 02:51:36 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-01-28 02:51:36 +0000
commit07eb8acd28ad34d454257f0d0af73b2f8eb86e3b (patch)
treede1fdac6b87495cfef7450d8192744a0dfc7989e /include
parent5b35aa5cd29bb111d847b2a2ed18110acbfb1f44 (diff)
The physical address space on R10K Origins is wider than mips32 platforms.
Diffstat (limited to 'include')
-rw-r--r--include/asm-mips64/addrspace.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/asm-mips64/addrspace.h b/include/asm-mips64/addrspace.h
index fee19b6d3..5e01f1ffe 100644
--- a/include/asm-mips64/addrspace.h
+++ b/include/asm-mips64/addrspace.h
@@ -1,4 +1,4 @@
-/* $Id: addrspace.h,v 1.2 1999/12/04 03:59:12 ralf Exp $
+/* $Id: addrspace.h,v 1.3 2000/01/17 23:32:47 ralf Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
@@ -29,16 +29,16 @@
/*
* Returns the physical address of a KSEG0/KSEG1 address
*/
-#define CPHYSADDR(a) (((unsigned long)(a)) & 0x1fffffffUL)
-#define PHYSADDR(a) (((unsigned long)(a)) & 0x1fffffffUL)
+#define CPHYSADDR(a) (((unsigned long)(a)) & 0x000000ffffffffffUL)
+#define PHYSADDR(a) (((unsigned long)(a)) & 0x000000ffffffffffUL)
/*
* Map an address to a certain kernel segment
*/
-#define KSEG0ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG0))
-#define KSEG1ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG1))
-#define KSEG2ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG2))
-#define KSEG3ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x1fffffff) | KSEG3))
+#define KSEG0ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x000000ffffffffffUL) | KSEG0))
+#define KSEG1ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x000000ffffffffffUL) | KSEG1))
+#define KSEG2ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x000000ffffffffffUL) | KSEG2))
+#define KSEG3ADDR(a) ((__typeof__(a))(((unsigned long)(a) & 0x000000ffffffffffUL) | KSEG3))
/*
* Memory segments (64bit kernel mode addresses)