aboutsummaryrefslogtreecommitdiff
path: root/src/gdt
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
parentAdd more comments to GDT code (diff)
downloadkernel.cpp-a487d6ccee43bd6cd5ec648e8b97712595f681a7.tar.xz
Add some compiler warnings
Diffstat (limited to 'src/gdt')
-rw-r--r--src/gdt/segmentdescriptor.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gdt/segmentdescriptor.cc b/src/gdt/segmentdescriptor.cc
index 94205c8..baf4753 100644
--- a/src/gdt/segmentdescriptor.cc
+++ b/src/gdt/segmentdescriptor.cc
@@ -1,6 +1,7 @@
#include "../gdt.h"
-GDT::SegmentDescriptor::SegmentDescriptor(uint32_t base, uint32_t limit, GDT::SegmentDescriptor::Access a) : access(a) {
+GDT::SegmentDescriptor::SegmentDescriptor(uint32_t base, uint32_t limit, GDT::SegmentDescriptor::Access type)
+ : access(type) {
// store base
base_15_0 = base & 0xffff;
base_23_16 = (base >> 16) & 0xff;