aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/cpu
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2025-05-03 09:45:45 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2025-05-03 09:45:45 +0000
commit5a8c9d2f2e4a3d2810f81c35070c6ef0926cfdd1 (patch)
treef93079bf5d250e176abbd3db9902f5d22285f6a4 /arch/x86_64/src/kernel/cpu
parent4b8674bee6089aef1e2c6b9064c6109f1cd392da (diff)
downloadteachos-5a8c9d2f2e4a3d2810f81c35070c6ef0926cfdd1.tar.xz
teachos-5a8c9d2f2e4a3d2810f81c35070c6ef0926cfdd1.zip
write wrapper function for syscall
Diffstat (limited to 'arch/x86_64/src/kernel/cpu')
-rw-r--r--arch/x86_64/src/kernel/cpu/control_register.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86_64/src/kernel/cpu/control_register.cpp b/arch/x86_64/src/kernel/cpu/control_register.cpp
index a39a360..41b8cd7 100644
--- a/arch/x86_64/src/kernel/cpu/control_register.cpp
+++ b/arch/x86_64/src/kernel/cpu/control_register.cpp
@@ -23,9 +23,6 @@ namespace teachos::arch::kernel::cpu
case control_register::CR4:
asm volatile("mov %%cr4, %[output]" : [output] "=r"(current_value));
break;
- default:
- exception_handling::panic("[Control Register] Attempted to read non-existent or reserved control register");
- break;
}
return current_value;
}
@@ -58,9 +55,6 @@ namespace teachos::arch::kernel::cpu
: [input] "r"(new_value)
: "memory");
break;
- default:
- exception_handling::panic("[Control Register] Attempted to write non-existent or reserved control register");
- break;
}
}