diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-10 19:39:30 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-03-10 19:39:30 +0200 |
commit | a302ef42887a1a349d9918d5d1471bbea8f59c2b (patch) | |
tree | ce655d3c31574c6cb77bc437abedf66d32ac9d90 /src/gdt.cc | |
parent | Move elf and iso to builddir (diff) | |
download | kernel.cpp-a302ef42887a1a349d9918d5d1471bbea8f59c2b.tar.xz |
vmm: display segment map info
Diffstat (limited to 'src/gdt.cc')
-rw-r--r-- | src/gdt.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ constexpr uint32_t null_sz = 0; constexpr uint32_t kseg_start = 0; constexpr uint32_t kseg_sz = 0xffffffff; -static GDT::SegmentDescriptor segments[256]{ +__attribute__((section(".constinit"))) static GDT::SegmentDescriptor segments[256]{ [GDT::null0] = seg::make<null_sz>(0, {}), [GDT::kcode] = seg::make<kseg_sz>(kseg_start, {.r_w = true, .exe = true, .segment = true, .present = true}), [GDT::kdata] = seg::make<kseg_sz>(kseg_start, {.r_w = true, .segment = true, .present = true}), |