git: 2e533532808b - main - kboot: Call enumerate_memory_arch()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Feb 2023 15:50:42 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=2e533532808b060111dd6f3780dd99c896d6fbe6
commit 2e533532808b060111dd6f3780dd99c896d6fbe6
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-02-03 15:39:16 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-02-03 15:41:39 +0000
kboot: Call enumerate_memory_arch()
Now that all architectures provide this, enumerate the platform's memory
before we go to interact(). This needs to be done only once, but relies
on our ability to open host: files on some platforms, so it needs to be
done after devinit().
Sponsored by: Netflix
Reviewed by: tsoome, kevans
Differential Revision: https://reviews.freebsd.org/D38251
---
stand/kboot/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/stand/kboot/main.c b/stand/kboot/main.c
index bc2dad96dbfe..7f548fe15b08 100644
--- a/stand/kboot/main.c
+++ b/stand/kboot/main.c
@@ -256,6 +256,7 @@ main(int argc, const char **argv)
setenv("LINES", "24", 1);
memory_limits();
+ enumerate_memory_arch();
/*
* Find acpi, if it exists