Unifying the Lunaix's Physical Memory Model (#28)
[lunaix-os.git] / lunaix-os / arch / i386 / includes / sys / cpu.h
index a4be798b698a777d89ed69b97b7875b36e095606..d8b8a2336ac2db3e7d43d8f3106a404c133ab868 100644 (file)
@@ -57,19 +57,6 @@ cpu_chconfig(u32_t val)
     asm("mov %0, %%cr0" ::"r"(val));
 }
 
     asm("mov %0, %%cr0" ::"r"(val));
 }
 
-/**
- * @brief Load current virtual memory space
- *
- * @return u32_t
- */
-static inline u32_t
-cpu_ldvmspace()
-{
-    ptr_t val;
-    asm volatile("movl %%cr3,%0" : "=r"(val));
-    return val;
-}
-
 /**
  * @brief Change current virtual memory space
  *
 /**
  * @brief Change current virtual memory space
  *
@@ -81,29 +68,6 @@ cpu_chvmspace(u32_t val)
     asm("mov %0, %%cr3" ::"r"(val));
 }
 
     asm("mov %0, %%cr3" ::"r"(val));
 }
 
-/**
- * @brief Flush a certain TLB record
- *
- * @return u32_t
- */
-static inline void
-cpu_flush_page(ptr_t va)
-{
-    asm volatile("invlpg (%0)" ::"r"(va) : "memory");
-}
-
-/**
- * @brief Flush entire TLB
- *
- */
-static inline void
-cpu_flush_vmspace()
-{
-    asm("movl %%cr3, %%eax\n"
-        "movl %%eax, %%cr3" ::
-          : "eax");
-}
-
 static inline void
 cpu_enable_interrupt()
 {
 static inline void
 cpu_enable_interrupt()
 {