From nobody Fri Feb 03 15:50:34 2023 X-Original-To: dev-commits-src-all@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 4P7g970rzbz3kRww; Fri, 3 Feb 2023 15:50:35 +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 4P7g9703jkz3HLj; Fri, 3 Feb 2023 15:50:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675439435; 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=ybizXhUB6odzD5fJHZhGAzfVxJEEX8eMlpu9dYATR3I=; b=vNreJ9CFVthyzZDL4ijZoAFnQiN15rV51rThyb7Xd7eagd6eoX9Q4+cB62rKTqbdnoCQz9 6r3JNKI+FOmyvqEi8jhfviO7eHnkCigDdwPoPlHuw3wnIxAby2cR7MsVmUzDR7an3Kvt8M CaUjPXVC44lekjNIcBVtMc/9Bqkb/yho1EAyDweXbOJG2mUXupSQWLfSzPgUL8dy8C1cIJ mbUYu1lBUqbkVQudxGfQiEBDE0HJH2UVdjIoD+lcoMm9lujFf3VeyX56ntsHNew5eU/86Y 64aGA0o2xtzm9PpPkgJ2bzUj0UxMw3TZphM1CcXZKzVPeQ08/XpdOqtEW4CnDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675439435; 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=ybizXhUB6odzD5fJHZhGAzfVxJEEX8eMlpu9dYATR3I=; b=NPDL+e63j3wcoiP0+0e26BDPlNiFzm0C3HFUUGO0D0c6+AFGBA0/M3HzEVY+FW5uKRN3Xv vOXr3v58gc15EReboAUlYb+oBokdGOWb2bOvsZy6h6TI7ci+CZqZDYFjoM7QFJ7EUt8uJo KBymSrMPC1b8Te3e8ohSMByVoFRHKaxldq7qcqCXnuGVYcUwZan7vqgINl71Ryqfoccf/N qnGJKp493HTtzBQ/AcbhoCxwkK2UMXtNzLkCCo0GXxbwEv4fTOe6oWjne+lLh4PEIaaI39 4lCvlwYdvR++h4pWtZcKH0/70jX0mVqjtE69DAkgC+Q179ZTNK/M31PQGnE5dg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675439435; a=rsa-sha256; cv=none; b=ofq8xERpVuKIgq7VYBebIraxRY5jDTzZA/+GKlJJU2Wp+6Lph2tUPB4uYusVfzdtN0rnEE tdnfKKZBDGUSLo+85gAh8BGN5zI9/KTCDVWETsSPI0CukDY+WJFAKqqGeAR0dH8L0U08QQ Arc9NIT46xVKQ3ZLPmjmJNRi4XzOIF3dYBoCeeQMhY+hHZFRjr/DBYnydgjLQK/rTQBJke HESG/EviM1vLPEmC8yECA/ffID0pmZMZEWrEG9YQwG8MrVLsVa5YGlY1+scECc1H/N3RKd oFc6VV/N8oKSml7u3k+sLWpfxEZuStvb/lyh5kXsWjzbppf0jWdWPKWTcsFyEg== 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 4P7g966DCkzgMw; Fri, 3 Feb 2023 15:50:34 +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 313FoYso022904; Fri, 3 Feb 2023 15:50:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 313FoYPg022903; Fri, 3 Feb 2023 15:50:34 GMT (envelope-from git) Date: Fri, 3 Feb 2023 15:50:34 GMT Message-Id: <202302031550.313FoYPg022903@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: 9e5022213126 - main - kboot: MI part of the memory enumeration code List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 9e502221312669f5a9bf0d01c5950c0e66a2937a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=9e502221312669f5a9bf0d01c5950c0e66a2937a commit 9e502221312669f5a9bf0d01c5950c0e66a2937a Author: Warner Losh AuthorDate: 2023-02-03 15:37:45 +0000 Commit: Warner Losh 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);