aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2023-02-03 15:39:16 +0000
committerWarner Losh <imp@FreeBSD.org>2023-02-03 15:41:39 +0000
commit2e533532808b060111dd6f3780dd99c896d6fbe6 (patch)
treeb763d1a7ab6da20d8f580717fbd717ab41bbe6c8
parenta967cd4db2aff9c03adfead4b981a3659e75daf4 (diff)
downloadsrc-2e533532808b060111dd6f3780dd99c896d6fbe6.tar.gz
src-2e533532808b060111dd6f3780dd99c896d6fbe6.zip
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
-rw-r--r--stand/kboot/main.c1
1 files changed, 1 insertions, 0 deletions
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