Add variables for the future
This commit is contained in:
parent
ae235e5538
commit
6a7097c9ec
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user