From nobody Wed Dec 07 18:06:26 2022 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 4NS4wf4Xk9z4jRRg; Wed, 7 Dec 2022 18:06:26 +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 4NS4wf3zWxz4Lf5; Wed, 7 Dec 2022 18:06:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670436386; 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=UyPTP7y/TomsPkHTy/IF66w8cS5sRRr3Aa0nfYcDpcc=; b=yNu5B5yrqE7f3xljfZ+ndR8KYfhXtzvIB4k1WYvGoonN8cZdj0JNOHCWvybVGNK/4pkn+4 fjUM4QEwcjtdmZ6EvFywRm4w8HifZyAZ1UYz7PXachXZD95TBT9FB9zZMoO/qYw7lLB+VS JvEcDhRK4Lf6mTuvpcjN81kXY8xdwmbO13cxrk+2GZwa7SrCvR4fRpZBRhNRd8ycRER+Jv rcTKFTi5vxN5DGy7r5M6LRVZ6j5ozNfMOixQyp/XY0dBA99v1LDY5CF/PipZMM3orzssah SIh+s6cH4kbwG97PUw7VlrbcksdZ8e8hGMPa4wvxKgERa+UEq6MXLXtT6VHlpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670436386; 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=UyPTP7y/TomsPkHTy/IF66w8cS5sRRr3Aa0nfYcDpcc=; b=jW8wrZ504LLQlb7u5Ha0O7jnTNpnv07Lz92QTBgQHY32kk4yYQ/XIMIG2blXI4nOKcGvPC mgAbqpFjMl8+pTzNhkeF6rQryJa12lY+YHUD4KVQ+YDOyB5tRclMZAPn15mVqUJ+woiUEk GHiViwHqJltJ9KDhO2EyfKUsgz/ZlMtDo8xveTfeBqpUyTgDnMgH9zj87zoFI4tCGiJRDD oBe/VRTuvV+5T+g33Vf9784QKzGJzSLily4d4GrOuLmtRjavNpb9kFlOlx8C7sh4KfqGMj H2FrQD/bGgDin3//RNxQUEkGDrMox+QMxoxyPw5hBsrgw4DXPzsGgjRkKUNQqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670436386; a=rsa-sha256; cv=none; b=JqItn1Sm1vtHeNBxGDIcdbTE/MFUslvcSQOKi5XxRJBf1KlUNi5ID0JmLKT5fNZTxOWeCj EB06RzEwXGjn90Nscr/GX0jDSq10PoJNSgRZ8KkmSNuc8zGnY3n+VxLfauf7URMuU8N2HZ WfFF4U9Rr6JaQaeYXUNupcnXEHFL15QPO5T8fNXapxoU8jrimYVUD83cPJouTldiYel7Xv mACt+Ch5NGYrUyLTbAH37dNJLRkwchbtnQzPTrAiEEZFG+5CadYQIhtjAcn8JRBtFEgJQU 1dEt7p4TZubj5lpzW0FE5903CWrvRcDia6oy1m0uDxfo8NiiQwl9QfWJxw6xzQ== 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 4NS4wf353gzQfw; Wed, 7 Dec 2022 18:06:26 +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 2B7I6Q0F072419; Wed, 7 Dec 2022 18:06:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B7I6QIE072418; Wed, 7 Dec 2022 18:06:26 GMT (envelope-from git) Date: Wed, 7 Dec 2022 18:06:26 GMT Message-Id: <202212071806.2B7I6QIE072418@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: 299c64e316f0 - main - stand/kboot: Initialize all the devices 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: 299c64e316f026a9441775f21dfdb69e8125d58e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=299c64e316f026a9441775f21dfdb69e8125d58e commit 299c64e316f026a9441775f21dfdb69e8125d58e Author: Warner Losh AuthorDate: 2022-12-07 17:50:35 +0000 Commit: Warner Losh CommitDate: 2022-12-07 18:00:54 +0000 stand/kboot: Initialize all the devices main() of the boot loader is expected to call devinit() early. We do this at the same time we do it in the EFI loader (except we don't have a buffer cache here, we don't need to initialize time and we don't have special efi partition handles to enumerate). This is just after we probe for the console. Sponsored by: Netflix --- stand/kboot/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stand/kboot/main.c b/stand/kboot/main.c index 7826e06c653f..b8cd27bf3cf9 100644 --- a/stand/kboot/main.c +++ b/stand/kboot/main.c @@ -105,6 +105,9 @@ main(int argc, const char **argv) */ cons_probe(); + /* Initialize all the devices */ + devinit(); + /* Choose bootdev if provided */ if (argc > 1) bootdev = argv[1];