forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/mips/include/asm/mach-ip27/spaces.h
....@@ -10,17 +10,19 @@
1010 #ifndef _ASM_MACH_IP27_SPACES_H
1111 #define _ASM_MACH_IP27_SPACES_H
1212
13
+#include <linux/const.h>
14
+
1315 /*
1416 * IP27 uses the R10000's uncached attribute feature. Attribute 3 selects
1517 * uncached memory addressing. Hide the definitions on 32-bit compilation
1618 * of the compat-vdso code.
1719 */
1820 #ifdef CONFIG_64BIT
19
-#define HSPEC_BASE 0x9000000000000000
20
-#define IO_BASE 0x9200000000000000
21
-#define MSPEC_BASE 0x9400000000000000
22
-#define UNCAC_BASE 0x9600000000000000
23
-#define CAC_BASE 0xa800000000000000
21
+#define HSPEC_BASE _AC(0x9000000000000000, UL)
22
+#define IO_BASE _AC(0x9200000000000000, UL)
23
+#define MSPEC_BASE _AC(0x9400000000000000, UL)
24
+#define UNCAC_BASE _AC(0x9600000000000000, UL)
25
+#define CAC_BASE _AC(0xa800000000000000, UL)
2426 #endif
2527
2628 #define TO_MSPEC(x) (MSPEC_BASE | ((x) & TO_PHYS_MASK))