hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/ia64/include/uapi/asm/intrinsics.h
....@@ -21,15 +21,13 @@
2121 #endif
2222 #include <asm/cmpxchg.h>
2323
24
-#define ia64_native_get_psr_i() (ia64_native_getreg(_IA64_REG_PSR) & IA64_PSR_I)
25
-
26
-#define ia64_native_set_rr0_to_rr4(val0, val1, val2, val3, val4) \
24
+#define ia64_set_rr0_to_rr4(val0, val1, val2, val3, val4) \
2725 do { \
28
- ia64_native_set_rr(0x0000000000000000UL, (val0)); \
29
- ia64_native_set_rr(0x2000000000000000UL, (val1)); \
30
- ia64_native_set_rr(0x4000000000000000UL, (val2)); \
31
- ia64_native_set_rr(0x6000000000000000UL, (val3)); \
32
- ia64_native_set_rr(0x8000000000000000UL, (val4)); \
26
+ ia64_set_rr(0x0000000000000000UL, (val0)); \
27
+ ia64_set_rr(0x2000000000000000UL, (val1)); \
28
+ ia64_set_rr(0x4000000000000000UL, (val2)); \
29
+ ia64_set_rr(0x6000000000000000UL, (val3)); \
30
+ ia64_set_rr(0x8000000000000000UL, (val4)); \
3331 } while (0)
3432
3533 /*
....@@ -84,42 +82,5 @@
8482 #define ia64_fetch_and_add(i,v) (ia64_fetchadd(i, v, rel) + (i)) /* return new value */
8583
8684 #endif
87
-
88
-
89
-#ifndef __ASSEMBLY__
90
-
91
-#define IA64_INTRINSIC_API(name) ia64_native_ ## name
92
-#define IA64_INTRINSIC_MACRO(name) ia64_native_ ## name
93
-
94
-
95
-/************************************************/
96
-/* Instructions paravirtualized for correctness */
97
-/************************************************/
98
-/* fc, thash, get_cpuid, get_pmd, get_eflags, set_eflags */
99
-/* Note that "ttag" and "cover" are also privilege-sensitive; "ttag"
100
- * is not currently used (though it may be in a long-format VHPT system!)
101
- */
102
-#define ia64_fc IA64_INTRINSIC_API(fc)
103
-#define ia64_thash IA64_INTRINSIC_API(thash)
104
-#define ia64_get_cpuid IA64_INTRINSIC_API(get_cpuid)
105
-#define ia64_get_pmd IA64_INTRINSIC_API(get_pmd)
106
-
107
-
108
-/************************************************/
109
-/* Instructions paravirtualized for performance */
110
-/************************************************/
111
-#define ia64_ssm IA64_INTRINSIC_MACRO(ssm)
112
-#define ia64_rsm IA64_INTRINSIC_MACRO(rsm)
113
-#define ia64_getreg IA64_INTRINSIC_MACRO(getreg)
114
-#define ia64_setreg IA64_INTRINSIC_API(setreg)
115
-#define ia64_set_rr IA64_INTRINSIC_API(set_rr)
116
-#define ia64_get_rr IA64_INTRINSIC_API(get_rr)
117
-#define ia64_ptcga IA64_INTRINSIC_API(ptcga)
118
-#define ia64_get_psr_i IA64_INTRINSIC_API(get_psr_i)
119
-#define ia64_intrin_local_irq_restore \
120
- IA64_INTRINSIC_API(intrin_local_irq_restore)
121
-#define ia64_set_rr0_to_rr4 IA64_INTRINSIC_API(set_rr0_to_rr4)
122
-
123
-#endif /* !__ASSEMBLY__ */
12485
12586 #endif /* _UAPI_ASM_IA64_INTRINSICS_H */