summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/addrspace.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/include/asm/addrspace.h')
-rw-r--r--arch/mips/include/asm/addrspace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/addrspace.h b/arch/mips/include/asm/addrspace.h
index 3b0e51d5a..c5b04e752 100644
--- a/arch/mips/include/asm/addrspace.h
+++ b/arch/mips/include/asm/addrspace.h
@@ -45,7 +45,7 @@
/*
* Returns the kernel segment base of a given address
*/
-#define KSEGX(a) ((_ACAST32_ (a)) & 0xe0000000)
+#define KSEGX(a) ((_ACAST32_(a)) & _ACAST32_(0xe0000000))
/*
* Returns the physical address of a CKSEGx / XKPHYS address