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
Macros
linker_defines.h File Reference

Preprocessor define values used in the linker script and referenced in C code. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LINKER_BITMAP_SIZE   0x10000
 Size of the bitmap region in the linker script.
 
#define LINKER_PAGE_SIZE   0x1000
 Size of each physical memory page Size of each physical memory page from table D4-20 in the Armv8-A architecture reference manual.
 
#define ID_MAP_NUM_PAGES   0x6
 Number of pages in the identity map.
 
#define ID_MAP_SIZE   (ID_MAP_NUM_PAGES * LINKER_PAGE_SIZE)
 Size of the identity map.
 

Detailed Description

Preprocessor define values used in the linker script and referenced in C code.

Centralises numeric constants shared between the linker script and the kernel C sources so both stay in sync without manual duplication.

Author
Abhin Parekadan Jose
Date
2026-04-12