Add variables for the future

This commit is contained in:
apio 2022-11-13 16:54:07 +01:00
parent ae235e5538
commit 6a7097c9ec

View File

@ -7,6 +7,11 @@
extern BOOTBOOT bootboot; extern BOOTBOOT bootboot;
extern u8 start_of_kernel_rodata[1];
extern u8 end_of_kernel_rodata[1];
extern u8 start_of_kernel_data[1];
extern u8 end_of_kernel_data[1];
static bool page_bitmap_read(u64 index); static bool page_bitmap_read(u64 index);
static void page_bitmap_set(u64 index, bool value); static void page_bitmap_set(u64 index, bool value);
@ -93,6 +98,10 @@ namespace MemoryManager
lock_pages((u64)page_bitmap_addr, page_bitmap_size / MMU::page_size() + 1); lock_pages((u64)page_bitmap_addr, page_bitmap_size / MMU::page_size() + 1);
} }
void protect_kernel_sections()
{
}
void init() void init()
{ {
init_physical_allocator(); init_physical_allocator();