bootloader
bootloader copied to clipboard
implement a new context switch
This pr reimplements the context switch in such a way that we don't need to map any of the bootloader's memory into the kernel's address space (see #239 for more info). This pr also makes the GDT base address configurable instead of identity mapping it into the kernel's address space.
Depends on https://github.com/rust-osdev/x86_64/pull/385 Closes #239
Thanks a lot for implementing this! Unfortunately, I don't have much time right now, but I try my best to review this as soon as possible.
Thanks a lot for implementing this! Unfortunately, I don't have much time right now, but I try my best to review this as soon as possible.
No worries, take your time!
Just rebased onto the latest next branch.
Thanks a lot! I'm really sorry for the delay in reviewing.
Given that this changes a critical part of the boot process, I think we should get https://github.com/rust-osdev/bootloader/pull/232 merged and released first since many people tested that version already. This change would then become v0.11.1, which would make it easier to compare the behavior and detect possible regressions. Would that be ok for you?
Sure, sounds good to me!
Why was this PR closed? Couldn't we just have switched the target branch to main?
Given that the delection of the target branch and the closing of this PR happened at the same time I thinl github auto-closed it.
Oh wow, looks like a race condition on GitHub's side. Normally, it just changes the base branch in this case (and it did so for https://github.com/rust-osdev/bootloader/pull/282), but apparently it handled the "branch deleted" action first for this PR.
Ok, restoring the branch allowed me to reopen this PR. I now changed the base branch manually.
Thanks!