fix: use the boot pt
This commit is contained in:
@ -12,7 +12,7 @@ extern uint32_t boot_page_directory;
|
||||
|
||||
// Pour récupérer une entrée spécifique
|
||||
uint32_t *page_directory = &boot_page_directory;
|
||||
uint32_t page_table_entries[1024] __attribute__((aligned(4096)));
|
||||
uint32_t *page_table_entries = &boot_page_table1;
|
||||
|
||||
unsigned long read_cr3()
|
||||
{
|
||||
@ -37,7 +37,7 @@ static inline void load_cr3(uint64_t cr3_value)
|
||||
|
||||
void init_memory(void)
|
||||
{
|
||||
for (int i = 0; i < 1024; i++)
|
||||
page_table_entries[i] = (i << 12) | INIT_FLAGS;
|
||||
page_directory[1] = (uint32_t)page_table_entries | INIT_FLAGS;
|
||||
//for (int i = 0x00; i < 0x300; i++)
|
||||
// page_table_entries[i] = (i << 12) | INIT_FLAGS;
|
||||
//page_directory[1] = (uint32_t)page_table_entries | INIT_FLAGS;
|
||||
}
|
Reference in New Issue
Block a user