IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
igros::multiboot Namespace Reference

Multiboot 1 information passed by the bootloader. More...

Namespaces

namespace  anonymous_namespace{multiboot.cpp}
 Anonymous namespace.

Classes

struct  infoSections
 Kernel sections info. More...
struct  infoVideo
 Multiboot video info. More...
struct  header_t
 Multiboot 1 header. More...
struct  info_t
 Multiboot 1 information from bootloader. More...
struct  memoryMapEntry
 Multiboot 1 memory map entry. More...
struct  moduleEntry
 Multiboot 1 module entry. More...
struct  vbeConfig
 VBE config. More...
struct  vbeMode
 VBE mode. More...
class  memoryMap_t
 Multiboot 1 memory map view (entries have variable size). More...

Enumerations

enum class  flags_t : igros_dword_t {
  MEM = (1_u32 << 0) , BOOT_DEV = (1_u32 << 1) , CMD = (1_u32 << 2) , MODULES = (1_u32 << 3) ,
  SYMS_AOUT = (1_u32 << 4) , SYMS_ELF = (1_u32 << 5) , MEM_MAP = (1_u32 << 6) , DRIVES = (1_u32 << 7) ,
  TABLE_CONFIG = (1_u32 << 8) , LOADER_NAME = (1_u32 << 9) , TABLE_APM = (1_u32 << 10) , VBE = (1_u32 << 11) ,
  FRAME_BUF = (1_u32 << 12)
}
 Multiboot header flags enumeration. More...
enum class  MEMORY_MAP_TYPE : igros_dword_t {
  AVAILABLE = 1_u32 , RESERVED = 2_u32 , ACPI = 3_u32 , NVS = 4_u32 ,
  BAD = 5_u32
}
 Multiboot 1 memory entry type. More...

Functions

auto check (const igros_dword_t signature) noexcept -> bool
 Multiboot 1 header signature check function.

Variables

static constexpr auto HEADER_MAGIC {0x1BADB002_u32}
 Multiboot 1 header magic.
static constexpr auto BOOTLOADER_MAGIC {0x2BADB002_u32}
 Multiboot 1 bootloader magic.

Detailed Description

Multiboot 1 information passed by the bootloader.

Enumeration Type Documentation

◆ flags_t

Multiboot header flags enumeration.

Enumerator
MEM 

Memory info available.

BOOT_DEV 

Boot device info available.

CMD 

Kernel command line available.

MODULES 

Kernel modules available.

SYMS_AOUT 

A.OUT info available.

SYMS_ELF 

ELF info available.

MEM_MAP 

Memory map available.

DRIVES 

Drives info available.

TABLE_CONFIG 

Configuration table available.

LOADER_NAME 

Bootloader name available.

TABLE_APM 

APM table available.

VBE 

VBE table available.

FRAME_BUF 

Frame buffer info available.

Definition at line 47 of file multiboot.hpp.

◆ MEMORY_MAP_TYPE

Multiboot 1 memory entry type.

Enumerator
AVAILABLE 

Memory available.

RESERVED 

Memory reserved.

ACPI 

Memory is ACPI reclaimable.

NVS 

Memory is NVS.

BAD 

BAD memory.

Definition at line 320 of file multiboot.hpp.

Function Documentation

◆ check()

auto igros::multiboot::check ( const igros_dword_t signature) ->bool
inlinenodiscardnoexcept

Multiboot 1 header signature check function.

Parameters
signatureBootloader magic
Returns
true if kernel was loaded by multiboot bootloader

Definition at line 41 of file multiboot.hpp.

Variable Documentation

◆ BOOTLOADER_MAGIC

auto igros::multiboot::BOOTLOADER_MAGIC {0x2BADB002_u32}
staticconstexpr

Multiboot 1 bootloader magic.

Definition at line 34 of file multiboot.hpp.

◆ HEADER_MAGIC

auto igros::multiboot::HEADER_MAGIC {0x1BADB002_u32}
staticconstexpr

Multiboot 1 header magic.

Definition at line 32 of file multiboot.hpp.