Page MenuHomeFreeBSD

D48579.diff
No OneTemporary

D48579.diff

diff --git a/sys/arm64/include/cpufunc.h b/sys/arm64/include/cpufunc.h
--- a/sys/arm64/include/cpufunc.h
+++ b/sys/arm64/include/cpufunc.h
@@ -160,6 +160,26 @@
"isb \n");
}
+static __inline void
+wfet(uint64_t val)
+{
+ __asm __volatile(
+ "msr s0_3_c1_c0_0, %0\n"
+ :
+ : "r" ((val))
+ : "memory");
+}
+
+static __inline void
+wfit(uint64_t val)
+{
+ __asm __volatile(
+ "msr s0_3_c1_c0_1, %0\n"
+ :
+ : "r" ((val))
+ : "memory");
+}
+
extern bool icache_aliasing;
extern bool icache_vmid;

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 24, 9:59 PM (15 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16033086
Default Alt Text
D48579.diff (527 B)

Event Timeline