aboutsummaryrefslogtreecommitdiff
path: root/src/gdt.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-02-09 20:44:43 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-02-09 20:44:43 +0200
commita487d6ccee43bd6cd5ec648e8b97712595f681a7 (patch)
tree4b48fa9a6d409726e8619265efe2d2acd33bcf3f /src/gdt.h
parentAdd more comments to GDT code (diff)
downloadkernel.cpp-a487d6ccee43bd6cd5ec648e8b97712595f681a7.tar.xz
Add some compiler warnings
Diffstat (limited to 'src/gdt.h')
-rw-r--r--src/gdt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gdt.h b/src/gdt.h
index 244908b..274cb6a 100644
--- a/src/gdt.h
+++ b/src/gdt.h
@@ -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|