IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
gdt.cpp File Reference

Global descriptor table low-level operations. More...

#include <bit>
#include <arch/i386/gdt.hpp>
#include <arch/i386/tss.hpp>
Include dependency graph for gdt.cpp:

Go to the source code of this file.

Namespaces

namespace  igros
 IgrOS kernel: common types and literals.
namespace  igros::i386
 i386 (32-bit protected mode): GDT, IDT, TSS, CPU registers

Functions

void gdtResetSegments () noexcept
 Reset segments to apply new GDT.
void gdtLoad (const igros::i386::gdt::pointer_t *const gdtPtr) noexcept
 Load GDT.
void gdtStore (igros::i386::gdt::pointer_t *const gdtPtr) noexcept
 Store GDT.
void tssLoad (const igros::igros_word_t selector) noexcept
 Load task register.

Detailed Description

Global descriptor table low-level operations.

Date
03 Nov 2026
Author
Igor Baklykov

Definition in file gdt.cpp.

Function Documentation

◆ gdtLoad()

void gdtLoad ( const igros::i386::gdt::pointer_t *const gdtPtr)
noexcept

Load GDT.

Parameters
gdtPtrGDT pointer (size and address)

◆ gdtStore()

void gdtStore ( igros::i386::gdt::pointer_t *const gdtPtr)
noexcept

Store GDT.

Parameters
gdtPtrStored GDT pointer

◆ tssLoad()

void tssLoad ( const igros::igros_word_t selector)
noexcept

Load task register.

Parameters
selectorTSS selector