refactor: Optimize the context switch overhead
[lunaix-os.git] / lunaix-os / includes / hal / cpu.h
index 694d678afd52d5a7a5388d5056c42d02f12e092c..3b77c7eb12aeca27205d8406f738ae5c8a17f0c2 100644 (file)
@@ -137,4 +137,10 @@ cpu_rdmsr(u32_t msr_idx, u32_t* reg_high, u32_t* reg_low);
 void
 cpu_wrmsr(u32_t msr_idx, u32_t reg_high, u32_t reg_low);
 
+static inline void
+cpu_ldvmspace(ptr_t vms)
+{
+    cpu_lcr3(vms);
+}
+
 #endif
\ No newline at end of file