Page MenuHomeFreeBSD

kboot: Try to read UEFI memory from physical memory on aarch64
ClosedPublic

Authored by imp on Jan 29 2023, 3:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 2:56 AM
Unknown Object (File)
Sat, Dec 14, 5:38 PM
Unknown Object (File)
Mon, Dec 9, 12:06 PM
Unknown Object (File)
Mon, Dec 9, 6:24 AM
Unknown Object (File)
Sun, Dec 8, 8:53 AM
Unknown Object (File)
Nov 21 2024, 7:36 AM
Unknown Object (File)
Nov 21 2024, 7:36 AM
Unknown Object (File)
Nov 21 2024, 7:36 AM
Subscribers

Details

Summary

Try to open /dev/mem to read in the UEFI memory map. If we can't, then
we'll read it in the trampoline.

We also have to read in /proc/iomem to find reserved areas in
Linux. These are free once the kernel is running, but cannot be used for
a kernel booted via kboot.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 49460
Build 46350: arc lint + arc unit

Event Timeline

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

rebase / refactor / redo

Update to reflect the printf tweak in an eariler patch

This revision is now accepted and ready to land.Feb 2 2023, 3:55 AM

Declare fd2, removed as unused in prior commit

This revision now requires review to proceed.Feb 2 2023, 6:23 PM
tsoome requested changes to this revision.Feb 2 2023, 9:59 PM
tsoome added inline comments.
stand/kboot/arch/aarch64/load_addr.c
103

trampoline ?

This revision now requires changes to proceed.Feb 2 2023, 9:59 PM
imp marked an inline comment as done.Feb 2 2023, 10:06 PM
imp added inline comments.
stand/kboot/arch/aarch64/load_addr.c
103

indeed.

This revision is now accepted and ready to land.Feb 2 2023, 10:06 PM
This revision was automatically updated to reflect the committed changes.
imp marked an inline comment as done.