diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-02-27 09:24:17 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-02-27 09:24:17 +0000 |
| commit | 8d14c729c43ee555c240a043e3909617e4fa5043 (patch) | |
| tree | 80572fd3b785ea1f4ffba05919ca29fbbf0d2d12 /arch/x86_64/src | |
| parent | cc67705d0154f1d55aa234714389ec2db00e9406 (diff) | |
| download | teachos-8d14c729c43ee555c240a043e3909617e4fa5043.tar.xz teachos-8d14c729c43ee555c240a043e3909617e4fa5043.zip | |
Add files to cmake and implement gdt flags
Diffstat (limited to 'arch/x86_64/src')
| -rw-r--r-- | arch/x86_64/src/context_switching/descriptor_table/gdt_flags.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86_64/src/context_switching/descriptor_table/gdt_flags.cpp b/arch/x86_64/src/context_switching/descriptor_table/gdt_flags.cpp new file mode 100644 index 0000000..8a05956 --- /dev/null +++ b/arch/x86_64/src/context_switching/descriptor_table/gdt_flags.cpp @@ -0,0 +1,6 @@ +#include "arch/context_switching/descriptor_table/gdt_flags.hpp" + +namespace teachos::arch::context_switching::descriptor_table +{ + auto gdt_flags::contains_flags(std::bitset<4U> other) const -> bool { return (flags & other) == other; } +} // namespace teachos::arch::context_switching::descriptor_table |
