Max OS 0.3
Loading...
Searching...
No Matches
physical.cpp File Reference

Implementation of the Physical Memory Manager for managing physical memory pages. More...

#include <common/logger.h>
#include <memory/physical.h>
#include <system/cpu.h>

Go to the source code of this file.

Variables

volatile PAGE_ALIGNED unsigned char p4_table []
 The PML4 table setup in loader.s.
 
volatile PAGE_ALIGNED unsigned char p3_table []
 The PDPT table setup in loader.s.
 
volatile PAGE_ALIGNED unsigned char p3_table_hh []
 The PDPT table for higher half direct map setup in loader.s.
 
volatile PAGE_ALIGNED unsigned char p2_table []
 The PD table setup in loader.s.
 
volatile PAGE_ALIGNED unsigned char p1_table []
 The PT table setup in loader.s.
 
uint64_t _kernel_end
 The virtual address of where the kernel ends.
 
uint64_t _kernel_size
 The length of the memory region used by the kernel code.
 
uint64_t _kernel_physical_end
 The physical address where the kernel ends.
 

Detailed Description

Implementation of the Physical Memory Manager for managing physical memory pages.

Date
30th January 2024
Author
Max Tyson

Definition in file physical.cpp.