|
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.
|
Memory layout definitions. More...
#include <stdint.h>

Go to the source code of this file.
Typedefs | |
| typedef uint64_t | phy_addr |
| Type for representing physical addresses. | |
| typedef uint64_t | virt_addr |
| Type for representing virtual addresses. | |
Enumerations | |
| enum | mem_layout_bases { USER_SPACE = 0x0000000000000000UL , KERNEL_BASE = 0xFFFF000000000000UL } |
| Memory layout base addresses. More... | |
Functions | |
| void | update_kernel_base_va (void) |
| Update the kernel base virtual address. | |
| phy_addr | va_to_pa (virt_addr v_addr) |
| Convert a virtual address to a physical address. | |
| virt_addr | pa_to_va (phy_addr p_addr) |
| Convert a physical address to a virtual address. | |
Memory layout definitions.
Defines the memory layout for the kernel.
| enum mem_layout_bases |
Convert a physical address to a virtual address.
| p_addr | The physical address to convert. |