You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new assembly files handle:
- rom16.s: Jumping from reset, transitioning to 32-bit mode
- rom32.s: Copying data from ROM to RAM, jumping to PVH entry point
To place this code correctly, we add a new Program Header for the code
and data that expect to be in ROM. See the comments in layout.ld for
more information.
We also place the 32-bit GDT in the ROM. This is mostly for convenience,
as it lets us use the GDT directly from the ROM code without having to
do any complex offset calculations.
As laying out the code for a ROM makes the binary ~45% bigger, we gate
building as a ROM behind an optional feature.
Signed-off-by: Joe Richey <[email protected]>
0 commit comments