File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
arch/loongarch/include/asm Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 19
19
*/
20
20
#ifndef __ASSEMBLY__
21
21
#ifndef PHYS_OFFSET
22
- #define PHYS_OFFSET _AC(0, UL )
22
+ #define PHYS_OFFSET _UL(0 )
23
23
#endif
24
24
extern unsigned long vm_map_base ;
25
25
#endif /* __ASSEMBLY__ */
@@ -43,7 +43,7 @@ extern unsigned long vm_map_base;
43
43
* Memory above this physical address will be considered highmem.
44
44
*/
45
45
#ifndef HIGHMEM_START
46
- #define HIGHMEM_START (_AC(1, UL ) << _AC (DMW_PABITS, UL ))
46
+ #define HIGHMEM_START (_UL(1 ) << _UL (DMW_PABITS))
47
47
#endif
48
48
49
49
#define TO_PHYS (x ) ( ((x) & TO_PHYS_MASK))
@@ -65,16 +65,16 @@ extern unsigned long vm_map_base;
65
65
#define _ATYPE_
66
66
#define _ATYPE32_
67
67
#define _ATYPE64_
68
- #define _CONST64_ (x ) x
69
68
#else
70
69
#define _ATYPE_ __PTRDIFF_TYPE__
71
70
#define _ATYPE32_ int
72
71
#define _ATYPE64_ __s64
72
+ #endif
73
+
73
74
#ifdef CONFIG_64BIT
74
- #define _CONST64_ (x ) x ## UL
75
+ #define _CONST64_ (x ) _UL(x)
75
76
#else
76
- #define _CONST64_ (x ) x ## ULL
77
- #endif
77
+ #define _CONST64_ (x ) _ULL(x)
78
78
#endif
79
79
80
80
/*
You can’t perform that action at this time.
0 commit comments