Page MenuHomeFreeBSD

kboot: Improve amd64 booting
ClosedPublic

Authored by imp on Jan 29 2023, 3:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 1, 8:49 AM
Unknown Object (File)
Thu, Nov 27, 7:35 AM
Unknown Object (File)
Tue, Nov 25, 10:46 PM
Unknown Object (File)
Fri, Nov 21, 7:06 PM
Unknown Object (File)
Oct 30 2025, 12:59 AM
Unknown Object (File)
Oct 29 2025, 9:20 PM
Unknown Object (File)
Oct 29 2025, 6:58 PM
Unknown Object (File)
Oct 29 2025, 3:52 PM
Subscribers

Details

Summary

Copy more of the necessary state for FreeBSD to boot:
o Copy EFI memory tables
o Create custom page tables needed for the kernel to find itself
o Simplify the passing of args to the trampoline by putting them

on the stack rather than in dedicated memory.

This is only partially successful... we get only part way through the
amd64 startup code before dying. However, it's much further than before
the changes.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jan 29 2023, 3:16 PM

rebase / refactor / redo

kevans added inline comments.
stand/kboot/arch/amd64/amd64_tramp.S
31
This revision is now accepted and ready to land.Feb 2 2023, 3:46 AM
This revision now requires review to proceed.Feb 2 2023, 4:06 AM
This revision is now accepted and ready to land.Feb 2 2023, 10:49 PM
This revision was automatically updated to reflect the committed changes.