diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2025-04-10 12:29:19 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2025-04-10 12:29:19 +0000 |
| commit | 87091e2246d2c4c794d9d6a0c5398ca80d92335a (patch) | |
| tree | 4f9ff755da53182d864b604f28e10c0dd8ba82bd /arch/x86_64/include | |
| parent | dff78de795a89c181e9c94b26db2f16988e8f4d6 (diff) | |
| download | teachos-87091e2246d2c4c794d9d6a0c5398ca80d92335a.tar.xz teachos-87091e2246d2c4c794d9d6a0c5398ca80d92335a.zip | |
add register validation and asserts
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/kernel/cpu/segment_register.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86_64/include/arch/kernel/cpu/segment_register.hpp b/arch/x86_64/include/arch/kernel/cpu/segment_register.hpp index fd5a972..d495ce6 100644 --- a/arch/x86_64/include/arch/kernel/cpu/segment_register.hpp +++ b/arch/x86_64/include/arch/kernel/cpu/segment_register.hpp @@ -25,6 +25,12 @@ namespace teachos::arch::kernel::cpu */ auto read_code_segment_register() -> context_switching::interrupt_descriptor_table::segment_selector; + /** + * @brief TODO + * + */ + auto validate_data_segment_registers() -> context_switching::interrupt_descriptor_table::segment_selector; + } // namespace teachos::arch::kernel::cpu #endif // TEACHOS_ARCH_X86_64_KERNEL_CPU_SEGMENT_REGISTER_HPP |
