diff options
-rw-r--r-- | arch/mips/lib/uncached.c | 12 | ||||
-rw-r--r-- | include/asm-mips/addrspace.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/mips/lib/uncached.c b/arch/mips/lib/uncached.c index 58d14f4d9349..27b012d4341c 100644 --- a/arch/mips/lib/uncached.c +++ b/arch/mips/lib/uncached.c | |||
@@ -46,9 +46,9 @@ unsigned long __init run_uncached(void *func) | |||
46 | if (sp >= (long)CKSEG0 && sp < (long)CKSEG2) | 46 | if (sp >= (long)CKSEG0 && sp < (long)CKSEG2) |
47 | usp = CKSEG1ADDR(sp); | 47 | usp = CKSEG1ADDR(sp); |
48 | #ifdef CONFIG_64BIT | 48 | #ifdef CONFIG_64BIT |
49 | else if ((long long)sp >= (long long)PHYS_TO_XKPHYS(0LL, 0) && | 49 | else if ((long long)sp >= (long long)PHYS_TO_XKPHYS(0, 0) && |
50 | (long long)sp < (long long)PHYS_TO_XKPHYS(8LL, 0)) | 50 | (long long)sp < (long long)PHYS_TO_XKPHYS(8, 0)) |
51 | usp = PHYS_TO_XKPHYS((long long)K_CALG_UNCACHED, | 51 | usp = PHYS_TO_XKPHYS(K_CALG_UNCACHED, |
52 | XKPHYS_TO_PHYS((long long)sp)); | 52 | XKPHYS_TO_PHYS((long long)sp)); |
53 | #endif | 53 | #endif |
54 | else { | 54 | else { |
@@ -58,9 +58,9 @@ unsigned long __init run_uncached(void *func) | |||
58 | if (lfunc >= (long)CKSEG0 && lfunc < (long)CKSEG2) | 58 | if (lfunc >= (long)CKSEG0 && lfunc < (long)CKSEG2) |
59 | ufunc = CKSEG1ADDR(lfunc); | 59 | ufunc = CKSEG1ADDR(lfunc); |
60 | #ifdef CONFIG_64BIT | 60 | #ifdef CONFIG_64BIT |
61 | else if ((long long)lfunc >= (long long)PHYS_TO_XKPHYS(0LL, 0) && | 61 | else if ((long long)lfunc >= (long long)PHYS_TO_XKPHYS(0, 0) && |
62 | (long long)lfunc < (long long)PHYS_TO_XKPHYS(8LL, 0)) | 62 | (long long)lfunc < (long long)PHYS_TO_XKPHYS(8, 0)) |
63 | ufunc = PHYS_TO_XKPHYS((long long)K_CALG_UNCACHED, | 63 | ufunc = PHYS_TO_XKPHYS(K_CALG_UNCACHED, |
64 | XKPHYS_TO_PHYS((long long)lfunc)); | 64 | XKPHYS_TO_PHYS((long long)lfunc)); |
65 | #endif | 65 | #endif |
66 | else { | 66 | else { |
diff --git a/include/asm-mips/addrspace.h b/include/asm-mips/addrspace.h index 0bb7a93b7a5e..569f80aacbd2 100644 --- a/include/asm-mips/addrspace.h +++ b/include/asm-mips/addrspace.h | |||
@@ -127,7 +127,7 @@ | |||
127 | #define PHYS_TO_XKSEG_CACHED(p) PHYS_TO_XKPHYS(K_CALG_COH_SHAREABLE, (p)) | 127 | #define PHYS_TO_XKSEG_CACHED(p) PHYS_TO_XKPHYS(K_CALG_COH_SHAREABLE, (p)) |
128 | #define XKPHYS_TO_PHYS(p) ((p) & TO_PHYS_MASK) | 128 | #define XKPHYS_TO_PHYS(p) ((p) & TO_PHYS_MASK) |
129 | #define PHYS_TO_XKPHYS(cm, a) (_CONST64_(0x8000000000000000) | \ | 129 | #define PHYS_TO_XKPHYS(cm, a) (_CONST64_(0x8000000000000000) | \ |
130 | ((cm)<<59) | (a)) | 130 | (_CONST64_(cm) << 59) | (a)) |
131 | 131 | ||
132 | /* | 132 | /* |
133 | * The ultimate limited of the 64-bit MIPS architecture: 2 bits for selecting | 133 | * The ultimate limited of the 64-bit MIPS architecture: 2 bits for selecting |