Kernelite 0.1.0
Kernelite is a minimalist, educational operating system kernel built from scratch. The project aims to recreate core components of the Linux architecture to explore the fundamentals of operating system design and hardware-software interaction.
Loading...
Searching...
No Matches
Data Fields
mair_attr_t Struct Reference

Single MAIR attribute slot (one byte). More...

Collaboration diagram for mair_attr_t:
Collaboration graph
[legend]

Data Fields

union { 
 
   uint8_t   value 
 
   mair_device_attr_t   device 
 
   mair_normal_attr_t   normal 
 
};  
 

Detailed Description

Single MAIR attribute slot (one byte).

Overlays a raw byte with typed views for Device or Normal memory. Which union member is active is determined by the upper nibble: device.res0_7_4 == 0b0000 → Device memory. Otherwise → Normal memory.

Field Documentation

◆ device

mair_device_attr_t mair_attr_t::device

Device memory attribute layout.

◆ normal

mair_normal_attr_t mair_attr_t::normal

Normal memory attribute layout.

◆ value

uint8_t mair_attr_t::value

Raw attribute byte.


The documentation for this struct was generated from the following file: