vmm - allow remapping
[lunaix-os.git] / lunaix-os / hal / cpu.c
index d57ae26d4a07447957ad2da56a3adc801afd771c..ad1b0a5937e3edc1df80cfb1df96332cbac8bc4d 100644 (file)
@@ -38,42 +38,4 @@ void cpu_get_brand(char* brand_out) {
         j+=4;
     }
     brand_out[48] = '\0';
-}
-
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wreturn-type"
-reg32 cpu_r_cr0() {
-    asm volatile ("mov %cr0, %eax");
-}
-
-reg32 cpu_r_cr2() {
-    asm volatile ("mov %cr2, %eax");
-}
-
-reg32 cpu_r_cr3() {
-    asm volatile ("mov %cr3, %eax");
-}
-#pragma GCC diagnostic push
-
-void cpu_w_cr0(reg32 v) {
-    asm volatile (
-        "mov %0, %%cr0"
-        :: "r"(v)
-    );
-}
-
-void cpu_w_cr2(reg32 v) {
-    asm volatile (
-        "mov %0, %%cr2"
-        :: "r"(v)
-    );
-}
-
-void cpu_w_cr3(reg32 v) {
-    asm volatile (
-        "mov %0, %%cr3"
-        :: "r"(v)
-    );
-}
-
-
+}
\ No newline at end of file