-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Higher Half? #159
Comments
Have you tried to specify a custom virtual base address via an |
I used the following linker script and is verified on the limine bootloader that it works fine and the higher offset value is fine.
In the elf loader you probably have to subtract the KERNEL_OFFSET from the elf section's vaddr. |
Ah, I think I found the issue. We're reserving only two frames to identity map the context switch function, but that is not enough when the kernel lives in a different level 3 table because then we need to create new level 3/2/1 tables as well. Regarding the linker script: You shouldn't need the |
So is it like a quick fix?
Ah thanks! |
@phil-opp I added a fix but I am still not sure as my heap does not work after this though. pub const HEAP_START: usize = 0xfffffe8000000000;
pub const HEAP_SIZE: usize = 100 * 1024; |
@Andy-Python-Programmer Were you able to solve the heap problem? |
Yeah thanks! |
Will be nice to support higher half kernels.
The text was updated successfully, but these errors were encountered: