We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8016690 commit 5c636d5Copy full SHA for 5c636d5
tools/testing/selftests/kvm/include/aarch64/processor.h
@@ -172,4 +172,14 @@ static __always_inline u32 __raw_readl(const volatile void *addr)
172
#define writel(v,c) ({ __iowmb(); writel_relaxed((v),(c));})
173
#define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(__v); __v; })
174
175
+static inline void local_irq_enable(void)
176
+{
177
+ asm volatile("msr daifclr, #3" : : : "memory");
178
+}
179
+
180
+static inline void local_irq_disable(void)
181
182
+ asm volatile("msr daifset, #3" : : : "memory");
183
184
185
#endif /* SELFTEST_KVM_PROCESSOR_H */
0 commit comments