limine: Use a higher-half pointer for the stack on AArch64

This commit is contained in:
Kacper Słomiński 2023-07-26 23:03:46 +02:00 committed by mintsuki
parent f365a46617
commit dc68fcaff7
1 changed files with 3 additions and 1 deletions

View File

@ -1108,7 +1108,9 @@ FEAT_END
#elif defined (__aarch64__) #elif defined (__aarch64__)
vmm_assert_4k_pages(); vmm_assert_4k_pages();
enter_in_el1(entry_point, (uint64_t)stack, LIMINE_SCTLR, LIMINE_MAIR(fb_attr), LIMINE_TCR(tsz, pa), uint64_t reported_stack = reported_addr(stack);
enter_in_el1(entry_point, reported_stack, LIMINE_SCTLR, LIMINE_MAIR(fb_attr), LIMINE_TCR(tsz, pa),
(uint64_t)pagemap.top_level[0], (uint64_t)pagemap.top_level[0],
(uint64_t)pagemap.top_level[1], 0); (uint64_t)pagemap.top_level[1], 0);
#elif defined (__riscv64) #elif defined (__riscv64)