diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-09 20:44:43 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-09 20:44:43 +0200 |
commit | a487d6ccee43bd6cd5ec648e8b97712595f681a7 (patch) | |
tree | 4b48fa9a6d409726e8619265efe2d2acd33bcf3f /src/gdt.h | |
parent | Add more comments to GDT code (diff) | |
download | kernel.cpp-a487d6ccee43bd6cd5ec648e8b97712595f681a7.tar.xz |
Add some compiler warnings
Diffstat (limited to 'src/gdt.h')
-rw-r--r-- | src/gdt.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -49,16 +49,16 @@ public: SegmentDescriptor() { access.present = false; }; template <uint32_t limit> - static SegmentDescriptor make(uint32_t base, Access a) { + static SegmentDescriptor make(uint32_t base, Access type) { static_assert(limit <= 0xffffu || (limit & 0xfff) == 0xfff); - return SegmentDescriptor(base, limit, a); + return SegmentDescriptor(base, limit, type); } [[nodiscard]] uint32_t base() const; [[nodiscard]] uint32_t limit() const; private: - SegmentDescriptor(uint32_t base, uint32_t limit, Access a); + SegmentDescriptor(uint32_t base, uint32_t limit, Access type); /* * |31| | | | | | |24|23|22|21|20|19| | |16|15| | |12|11| | | 8| 7| | | | | | | 0| |