Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the 16-bit bridge heavy-lifting to the 32-bit code segment.
Now we save off the stack pointer and immediately jmp back to 32-bit. This is slightly easier to debug (gdb doesn't get confused by addresses, registers or disassembly), and puts all the 32-bit registers in a 32-bit code segment, to keep things sane. Also: doesn't write duplicate instructions to update %ds and %es if they are the same values in Linux land.
- Loading branch information
Showing
1 changed file
with
42 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters