fix: add init flag
This commit is contained in:
parent
11ef629a3a
commit
1e35f3b710
@ -27,7 +27,7 @@ static void init_multiboot(multiboot_info_t *mbd, uint32_t magic)
|
|||||||
// Index multiboot_info_t struct
|
// Index multiboot_info_t struct
|
||||||
for (uint32_t i = 0; i < mbd_size; i++)
|
for (uint32_t i = 0; i < mbd_size; i++)
|
||||||
multiboot_page_table[i] =
|
multiboot_page_table[i] =
|
||||||
((uint32_t)mbd + PAGE_SIZE * i) & PAGE_MASK;
|
((uint32_t)mbd + PAGE_SIZE * i) & PAGE_MASK | INIT_FLAGS;
|
||||||
multiboot_info_t *mbd_virt =
|
multiboot_info_t *mbd_virt =
|
||||||
(multiboot_info_t *)(GET_PAGE_ADDR(1023, 0) +
|
(multiboot_info_t *)(GET_PAGE_ADDR(1023, 0) +
|
||||||
(uint32_t)mbd % PAGE_SIZE);
|
(uint32_t)mbd % PAGE_SIZE);
|
||||||
|
Loading…
Reference in New Issue
Block a user