kboot: MI part of the memory enumeration code

enumerate_memory_arch is called once early in kboot's startup to allow
us to discover the memory layout, reserved areas, etc of the system
memory. Add the MI interface part of this.

Sponsored by:		Netflix
Reviewed by:		tsoome, kevans
Differential Revision:	https://reviews.freebsd.org/D38247
This commit is contained in:
Warner Losh 2023-02-03 08:37:45 -07:00
parent fb26a14fc4
commit 9e50222131

View File

@ -9,6 +9,15 @@
#define DEVT_HOSTDISK 1234
struct memory_segments
{
uint64_t start;
uint64_t end;
uint64_t type; /* MD defined */
};
bool enumerate_memory_arch(void);
bool has_acpi(void);
vm_offset_t acpi_rsdp(void);