From nobody Sat Dec 03 20:08:09 2022 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 4NPgpx6rvYz4jJm5; Sat, 3 Dec 2022 20:08:09 +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 4NPgpx6Jqmz4P5D; Sat, 3 Dec 2022 20:08:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670098089; 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=BkUFlVhzfbVAvsAKsmK2Nr4IP0E5PtdwpEP8vBKrfgY=; b=BKnt3HdqPr2dqrPiy/9j3/qJZ0QUBgj0ZFfqOVE6Fp95BfrmYLID1OayV5nhwLqM66dYe6 r1cflC5AhSKIgPJzZKEIV4re3HyZ4uQJh1LBptlkRpMWfP/L/h1XnEJnywFqZ7C7SvZwHu zh5OUroJkwVGGnFGYPuJ4mTbZxMpFOdi9fL8iSFA9IZKGhSPQHdBsTOL7ncUHrZf3/cHZm 11JALz76S3UtpdlNCa5ORO0cmdXX6rjtWEUSTu5dxduFygU+9RVH0vpzwEpQo9nzVjBelZ LRIZrA/TdpLJdgCgyKoHi6m3nEESlVNczfVlnjfKZHc0pP75bLeZh2ICIqWYGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670098089; 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=BkUFlVhzfbVAvsAKsmK2Nr4IP0E5PtdwpEP8vBKrfgY=; b=oIB5EsIcjltq6oYlgSOCsApL+KS3lvv26+vUF13rj8xeSRSd5XYyatx57L9u4ETiqH9E0i ap/Z1LnsOyP4/cdrx44gJHIwH22+bE6W+dihzccxcplnOrFD2DR7/pGWpmqWCotMEQGMV0 UyW2keMKQcJY6CcNY5NcraUoGcr7vaQ9d5fYeQdPTCXNvnfwQnE5hT0l8RUI+QAAcZvs2R Hs9PZI5OJFXD6edR5n4CuyBGUrLf6pm7rNQEPgZvlf9XdHBeXv+Shx+1fD8aju0Vrv5JHv PPX8E3ThWH2nIIXDGtVosgFq1CdgbaIKIVfHYj3259ZgM+X67JJYX1w9N2AsJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670098089; a=rsa-sha256; cv=none; b=iAVJWny4Ciq5RdEV0968osd0188cWwjgIxqMGrM2WMGyuX03zLeOAXeBby1RoICZdB7aNj /H9PYCshZ8xp0aHaUBXcBqgRiRoXlwRGeNLdB2295bYuEYwl1xyR9TeZTVja1o0XK5549F OQOmuE/TuAqdh735NDXJkZ+70Qsm/3qjyhhZtwKvzPK6FZMuDrl9B/SEee4pXf46aT77CY UYnL4i1JQ8H+tf3Lltjwm8h+oNJMf8UtpMqSYoqXokk6GzkXgSTSpQfnws0IwAzO8uM5Ml EWD7TcWv63UXH/tXBmejb/8l7wVEmu9qzZ9ZSyUTb6LvreoN6wTOvsLwHeaktg== 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 4NPgpx5FcNz16rn; Sat, 3 Dec 2022 20:08:09 +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 2B3K89fG050012; Sat, 3 Dec 2022 20:08:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B3K89DH050011; Sat, 3 Dec 2022 20:08:09 GMT (envelope-from git) Date: Sat, 3 Dec 2022 20:08:09 GMT Message-Id: <202212032008.2B3K89DH050011@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: a2fbc8859361 - main - kboot: Move archsw init earlier 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: a2fbc8859361c7bac7823c0a1978c78df11bc81d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=a2fbc8859361c7bac7823c0a1978c78df11bc81d commit a2fbc8859361c7bac7823c0a1978c78df11bc81d Author: Warner Losh AuthorDate: 2022-12-03 19:48:11 +0000 Commit: Warner Losh CommitDate: 2022-12-03 19:48:45 +0000 kboot: Move archsw init earlier Do archsw init first thing. Sponsored by: Netflix --- stand/kboot/main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stand/kboot/main.c b/stand/kboot/main.c index 3b2c43c20a0f..7826e06c653f 100644 --- a/stand/kboot/main.c +++ b/stand/kboot/main.c @@ -83,6 +83,14 @@ main(int argc, const char **argv) const size_t heapsize = 15*1024*1024; const char *bootdev; + archsw.arch_getdev = kboot_getdev; + archsw.arch_copyin = kboot_copyin; + archsw.arch_copyout = kboot_copyout; + archsw.arch_readin = kboot_readin; + archsw.arch_autoload = kboot_autoload; + archsw.arch_loadaddr = kboot_loadaddr; + archsw.arch_kexec_kseg_get = kboot_kseg_get; + /* Give us a sane world if we're running as init */ do_init(); @@ -107,14 +115,6 @@ main(int argc, const char **argv) printf("Boot device: %s with hostfs_root %s\n", bootdev, hostfs_root); - archsw.arch_getdev = kboot_getdev; - archsw.arch_copyin = kboot_copyin; - archsw.arch_copyout = kboot_copyout; - archsw.arch_readin = kboot_readin; - archsw.arch_autoload = kboot_autoload; - archsw.arch_loadaddr = kboot_loadaddr; - archsw.arch_kexec_kseg_get = kboot_kseg_get; - printf("\n%s", bootprog_info); setenv("currdev", bootdev, 1);