From nobody Fri Feb 03 15:50:42 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P7g9H03Hrz3kRp3; Fri, 3 Feb 2023 15:50:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P7g9G6g1zz3Hp0; Fri, 3 Feb 2023 15:50:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675439442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+arnQnDyOvt1Yc1APsjh8B5OUwsaeUB5s53Tw+BAgrY=; b=nI2aODVU4YasHErzDdjUWwNOnyIxanlrxGiQujIIvcUBxIRTCTyyRdPtBfKGtxiqo4em5B /5OF3qpZbS71iZbSTboQ4AEnR8rWfx2aShya/fUQFLZGp89zQCBi6mIofjS3/KD42F6GQV d8J7Gm943VWIT69rO9BAC/wlC+T0Z2jxV2Ax3SCWrZHy+UvW6I8DfxXIaLOD9yG4PJbG2R 3zlLYwlVtzhSV2jBqhklUukSsMMfcniEDac+X7Vs9oaU/ZJ+zZ9QFrWRW69F9+lGLX2xvq w8D/8juXEUGuhlUSaJlOz5Q9NB0NU3Ca2kkCCDumhWQHiPUrGzK/3vk5Z+r6UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675439442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+arnQnDyOvt1Yc1APsjh8B5OUwsaeUB5s53Tw+BAgrY=; b=gbVIsVtu6B/v6lAz1oZe3s1/NLAuzFL0a2l1g8BvB+pbHYLWNkQrTcpNdXaj7LjTTEtWB7 8h/mZyXkVcCspNTcS229OCTMv+vVQ6AjMKoTJYwYw02bnx66HrTBj7evOvkwzqeVd77Rjo 8xdOcHk5bqBvx0I5zLEPxADcUch5UnDVPA7K6FtEShAUgoaVIRGmtvOXnMIOkC1YiOlC7t 6IAU2i7Z+v9XeexfblcVQmxf27V2H7v7fuFbbAy3P4SJjI4fE/xR4hoxOM6g5EjcLerBFp LOfkENL+ExQotL7iWa/pc/LuMxi/OKUV2Q87aIvmkWQ3sxV6/0y0XQQz2nt7uA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675439442; a=rsa-sha256; cv=none; b=Vn7JbdBP5MO483ly2VqdsdsYr8U2T+LX/tybeUl61fB1iFrD33VkOyWMaJ6dO2OQIFI41r QMzIkW+9bGMLJI93ncAyunDZ6a7clVhaD97mEP7O9Plm9kZtl9gyUg1hzt5PEIy9ASHlEE VkRcz8xXSnrV6AvxCHFhQpib+CdJzQar2+om0Y1PDxu69uMBMk4jydQBORybd9vIq+4rDi t68ZqGqk0YYxKV4xtrQYfuhOQUan8eIMVmH743S0yHtt8yoQLek+BzVQ58yIy+mTs/chm+ ER1hTNfTEOXpoSHjzLXQTmGZNqYcAuiyj7JxEh05UNJ4rFiFvdSUH1+irgxIXw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P7g9G5lkzzgL5; Fri, 3 Feb 2023 15:50:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 313Fogtg023086; Fri, 3 Feb 2023 15:50:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 313Fog9c023085; Fri, 3 Feb 2023 15:50:42 GMT (envelope-from git) Date: Fri, 3 Feb 2023 15:50:42 GMT Message-Id: <202302031550.313Fog9c023085@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 2e533532808b - main - kboot: Call enumerate_memory_arch() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2e533532808b060111dd6f3780dd99c896d6fbe6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=2e533532808b060111dd6f3780dd99c896d6fbe6 commit 2e533532808b060111dd6f3780dd99c896d6fbe6 Author: Warner Losh AuthorDate: 2023-02-03 15:39:16 +0000 Commit: Warner Losh 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