Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2023 15:50:42 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 2e533532808b - main - kboot: Call enumerate_memory_arch()
Message-ID:  <202302031550.313Fog9c023085@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302031550.313Fog9c023085>