git: 9e5022213126 - main - kboot: MI part of the memory enumeration code
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Feb 2023 15:50:34 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=9e502221312669f5a9bf0d01c5950c0e66a2937a
commit 9e502221312669f5a9bf0d01c5950c0e66a2937a
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-02-03 15:37:45 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-02-03 15:41:38 +0000
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
---
stand/kboot/kboot.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/stand/kboot/kboot.h b/stand/kboot/kboot.h
index d7e406f86d7a..c50f3f7d53a1 100644
--- a/stand/kboot/kboot.h
+++ b/stand/kboot/kboot.h
@@ -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);