diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-03-15 14:48:29 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-03-15 14:48:31 +0000 |
| commit | 5a332c90f79e6d10de1a8cd478c4dbef82f4d74d (patch) | |
| tree | 3f078524e29cfd0595008a1c19a3684ab2f3408a /arch/x86_64/include | |
| parent | e6a9d939ed5e9f89e69efdacc60a1ce6edd1061c (diff) | |
| download | teachos-5a332c90f79e6d10de1a8cd478c4dbef82f4d74d.tar.xz teachos-5a332c90f79e6d10de1a8cd478c4dbef82f4d74d.zip | |
Use empty bit field to implement reserved
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/context_switching/descriptor_table/segment_descriptor.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/include/arch/context_switching/descriptor_table/segment_descriptor.hpp b/arch/x86_64/include/arch/context_switching/descriptor_table/segment_descriptor.hpp index 7106771..7454470 100644 --- a/arch/x86_64/include/arch/context_switching/descriptor_table/segment_descriptor.hpp +++ b/arch/x86_64/include/arch/context_switching/descriptor_table/segment_descriptor.hpp @@ -56,7 +56,7 @@ namespace teachos::arch::context_switching::descriptor_table access_byte _access = {}; ///< Access byte field (40 - 47) gdt_flags _flag = {}; ///< Second part of the limit field + Flags field (48 - 55) uint64_t _base_2 : 40 = {}; ///< Second part of the base field (56 - 95) - uint32_t _reserved = {}; ///< Reserved field used to ensure this struct is 128 bits big (96 - 127) + uint32_t : 32; ///< Reserved field used to ensure this struct is 128 bits big (96 - 127) }; } // namespace teachos::arch::context_switching::descriptor_table |
