hot fix: remove outdated objcpy
[lunaix-os.git] / lunaix-os / arch / i386 / includes / sys / cpu.h
index 3289522af918840f3172ca4fe275049c86bb5483..d8b8a2336ac2db3e7d43d8f3106a404c133ab868 100644 (file)
@@ -17,13 +17,6 @@ cpu_trap_sched();
 void
 cpu_trap_panic(char* message);
 
-static inline ptr_t
-cpu_get_fp()
-{
-    ptr_t val;
-    asm("movl %%ebp, %0" : "=r"(val)::);
-    return val;
-}
 
 /**
  * @brief Load current processor state
@@ -64,19 +57,6 @@ cpu_chconfig(u32_t 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
  *
@@ -88,25 +68,6 @@ cpu_chvmspace(u32_t val)
     asm("mov %0, %%cr3" ::"r"(val));
 }
 
-/**
- * @brief Flush TLB
- *
- * @return u32_t
- */
-static inline void
-cpu_flush_page(ptr_t va)
-{
-    asm volatile("invlpg (%0)" ::"r"(va) : "memory");
-}
-
-static inline void
-cpu_flush_vmspace()
-{
-    asm("movl %%cr3, %%eax\n"
-        "movl %%eax, %%cr3" ::
-          : "eax");
-}
-
 static inline void
 cpu_enable_interrupt()
 {
@@ -125,6 +86,11 @@ cpu_wait()
     asm("hlt");
 }
 
+/**
+ * @brief Read exeception address
+ *
+ * @return ptr_t
+ */
 static inline ptr_t
 cpu_ldeaddr()
 {