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

Task state segment (i386). More...

#include <array>
#include <bit>
#include <arch/i386/tss.hpp>
#include <arch/x86/cr.hpp>
#include <arch/x86/native.hpp>
#include <klib/kPrint.hpp>
Include dependency graph for tss.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
namespace  igros::i386::anonymous_namespace{tss.cpp}
 Task state segments.

Functions

void igros::i386::anonymous_namespace{tss.cpp}::doubleFaultTask () noexcept
 Double fault task: interrupted state was saved in kernel task state segment.

Variables

constexpr tss::segment_t igros::i386::anonymous_namespace{tss.cpp}::EMPTY_SEGMENT
 Empty task state segment (no I/O permission bitmap: offset past segment limit).
constinit tss::segment_t igros::i386::anonymous_namespace{tss.cpp}::kernelSegment {EMPTY_SEGMENT}
 Kernel task.
constinit tss::segment_t igros::i386::anonymous_namespace{tss.cpp}::doubleFaultSegment {EMPTY_SEGMENT}
 Double fault task.
constinit std::array< igros_byte_t, tss::STACK_SIZE > igros::i386::anonymous_namespace{tss.cpp}::doubleFaultStack {}
 Double fault task stack.

Detailed Description

Task state segment (i386).

Date
03 Nov 2026
Author
Igor Baklykov

Definition in file tss.cpp.