Page MenuHomeFreeBSD

kboot: Improve amd64 booting
ClosedPublic

Authored by imp on Jan 29 2023, 3:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 3, 6:52 PM
Unknown Object (File)
Tue, Oct 1, 2:40 PM
Unknown Object (File)
Fri, Sep 27, 8:41 AM
Unknown Object (File)
Sep 16 2024, 5:53 PM
Unknown Object (File)
Sep 4 2024, 6:13 AM
Unknown Object (File)
Aug 30 2024, 2:52 AM
Unknown Object (File)
Aug 29 2024, 4:26 AM
Unknown Object (File)
Aug 21 2024, 4:15 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 49454
Build 46344: arc lint + arc unit

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.