From nobody Fri Sep 16 15:53:51 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 4MTdsX1VZKz4cLBl; Fri, 16 Sep 2022 15:53:52 +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 4MTdsW6y9Lz3hGS; Fri, 16 Sep 2022 15:53:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663343632; 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=jtxPZrjgixeiN60edvZr7ZdToGvgHnnCClzLUefhTsk=; b=Rw4iKv2XEM91xRrrnO6Kxx7LhkwvoTGjAe0fEHzk5AUHvCXu3gK23gYDrdth28uS4tpRTG BHWMiagJ4ZBcQMy05nS3iemQydVnnj9njsYaHplPUdYSVwZoVKOsKfMABlpCLHRf2L7MOH 0pK+vL6CdYA2uvYuF68+fWT0eQiC1NqfRxebd7uBkHgtSNb6DbNVRjN7sgNR9Y38tx1HI/ 23LJ+JsYeywtp0FDnLDJw2XFgSQ2vqvEzaEpfOAqsQjodFFL4YBkaI+o9L0DjwDpyxYTYl CMYTgzhRGhFNRY9vixT7gkW3DqoQv8v9Ox6eIhDrGcBn47+HEZwHe9hmyz+SBA== 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 4MTdsW5zd6zPnS; Fri, 16 Sep 2022 15:53:51 +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 28GFrp1e086332; Fri, 16 Sep 2022 15:53:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28GFrp0X086331; Fri, 16 Sep 2022 15:53:51 GMT (envelope-from git) Date: Fri, 16 Sep 2022 15:53:51 GMT Message-Id: <202209161553.28GFrp0X086331@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: a705c72f2142 - main - stand: use archsw.arch_copyin instead of i386_copyin 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: a705c72f214293a7aae5f83235a82f126f73e109 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663343632; 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=jtxPZrjgixeiN60edvZr7ZdToGvgHnnCClzLUefhTsk=; b=GVGTfxi3kRmLC6F6cCZus9+BD4PsUV8PdWucXx609Y5Fhx/QM4UG42/53RGB2qVe/xlOjU iZSuNesOG4+EZU8FrXj9b0ut5SVylqHvQsEHS61tczy21hZyvBZZ6kYpydoW5fWYlYQZFl dHyjYhrRkQEa7/eXfCK9rWJ4YZMGacTyKs/gnzL4qRsMH0F1AceqQ3Y7MjshDDo/JYj5l/ w0LfUY8zIjKYlv4JmjKa78/aDCN69X8MxiogQrl7ffCSXChLh+zMdsGiAeYMHFKfHl5ZIP fOYecOM6XFS3QNp20BxrKOlEuezagPnVbhNfVvYssyk6+yce7jC7gi1qTDLOTQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663343632; a=rsa-sha256; cv=none; b=jQQ7jzcjgHB/E8ky60saqzjYG6NnT1+zo+/SgP1WsndbS3IzklYZrZja95VukeejhdMZeL NtwN6epb0a+s0FELekT+YPDN8uzJb82JDJCSQVxOfIerEu9CzVS3SpNrNJAGehvQDEYcF8 kvb2RdzoxvprSWBV8W36+/9X8574sVRLjJfkOw/VWKVtIye/4v/Lhjyh6rXN94E8hTdFcQ VUbY8SBU6AC2ByFnnDoil8tnfsNl0CN5JAq4H1SSTS81MonmhN07FtEEKZ8esZv1SdHunX ptSpxR9TkFlRU9fe2Mnsp9KdEvelCSSusDGKcztho+XCiWxoSfu1SzMXCo0cng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=a705c72f214293a7aae5f83235a82f126f73e109 commit a705c72f214293a7aae5f83235a82f126f73e109 Author: Warner Losh AuthorDate: 2022-09-16 15:08:23 +0000 Commit: Warner Losh CommitDate: 2022-09-16 15:18:56 +0000 stand: use archsw.arch_copyin instead of i386_copyin Since archsw.arch_copyin is always i386_copyin, this will be a nop in terms of functionality. This is a diff reduction against other copies of the code that differ only by what copyin routine they call. Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D36568 --- stand/i386/libi386/bootinfo.c | 10 +++++----- stand/i386/libi386/bootinfo32.c | 8 ++++---- stand/i386/libi386/bootinfo64.c | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/stand/i386/libi386/bootinfo.c b/stand/i386/libi386/bootinfo.c index bdf409b00ec0..84a0b3586a1c 100644 --- a/stand/i386/libi386/bootinfo.c +++ b/stand/i386/libi386/bootinfo.c @@ -116,18 +116,18 @@ bi_copyenv(vm_offset_t addr) /* traverse the environment */ for (ep = environ; ep != NULL; ep = ep->ev_next) { - i386_copyin(ep->ev_name, addr, strlen(ep->ev_name)); + archsw.arch_copyin(ep->ev_name, addr, strlen(ep->ev_name)); addr += strlen(ep->ev_name); - i386_copyin("=", addr, 1); + archsw.arch_copyin("=", addr, 1); addr++; if (ep->ev_value != NULL) { - i386_copyin(ep->ev_value, addr, strlen(ep->ev_value)); + archsw.arch_copyin(ep->ev_value, addr, strlen(ep->ev_value)); addr += strlen(ep->ev_value); } - i386_copyin("", addr, 1); + archsw.arch_copyin("", addr, 1); addr++; } - i386_copyin("", addr, 1); + archsw.arch_copyin("", addr, 1); addr++; return(addr); } diff --git a/stand/i386/libi386/bootinfo32.c b/stand/i386/libi386/bootinfo32.c index 7afb11c6a3b7..dd919d0fad93 100644 --- a/stand/i386/libi386/bootinfo32.c +++ b/stand/i386/libi386/bootinfo32.c @@ -62,7 +62,7 @@ static struct bootinfo bi; #define COPY32(v, a, c) { \ uint32_t x = (v); \ if (c) \ - i386_copyin(&x, a, sizeof(x)); \ + archsw.arch_copyin(&x, a, sizeof(x)); \ a += sizeof(x); \ } @@ -70,7 +70,7 @@ static struct bootinfo bi; COPY32(t, a, c); \ COPY32(strlen(s) + 1, a, c); \ if (c) \ - i386_copyin(s, a, strlen(s) + 1); \ + archsw.arch_copyin(s, a, strlen(s) + 1); \ a += roundup(strlen(s) + 1, sizeof(u_long));\ } @@ -82,7 +82,7 @@ static struct bootinfo bi; COPY32(t, a, c); \ COPY32(sizeof(s), a, c); \ if (c) \ - i386_copyin(&s, a, sizeof(s)); \ + archsw.arch_copyin(&s, a, sizeof(s)); \ a += roundup(sizeof(s), sizeof(u_long)); \ } @@ -93,7 +93,7 @@ static struct bootinfo bi; COPY32(MODINFO_METADATA | mm->md_type, a, c); \ COPY32(mm->md_size, a, c); \ if (c) \ - i386_copyin(mm->md_data, a, mm->md_size); \ + archsw.arch_copyin(mm->md_data, a, mm->md_size); \ a += roundup(mm->md_size, sizeof(u_long));\ } diff --git a/stand/i386/libi386/bootinfo64.c b/stand/i386/libi386/bootinfo64.c index e1dc704e0e1c..1e06c229ec30 100644 --- a/stand/i386/libi386/bootinfo64.c +++ b/stand/i386/libi386/bootinfo64.c @@ -63,7 +63,7 @@ __FBSDID("$FreeBSD$"); #define COPY32(v, a, c) { \ uint32_t x = (v); \ if (c) \ - i386_copyin(&x, a, sizeof(x)); \ + archsw.arch_copyin(&x, a, sizeof(x)); \ a += sizeof(x); \ } @@ -71,7 +71,7 @@ __FBSDID("$FreeBSD$"); COPY32(t, a, c); \ COPY32(strlen(s) + 1, a, c); \ if (c) \ - i386_copyin(s, a, strlen(s) + 1); \ + archsw.arch_copyin(s, a, strlen(s) + 1); \ a += roundup(strlen(s) + 1, sizeof(uint64_t));\ } @@ -83,7 +83,7 @@ __FBSDID("$FreeBSD$"); COPY32(t, a, c); \ COPY32(sizeof(s), a, c); \ if (c) \ - i386_copyin(&s, a, sizeof(s)); \ + archsw.arch_copyin(&s, a, sizeof(s)); \ a += roundup(sizeof(s), sizeof(uint64_t)); \ } @@ -94,7 +94,7 @@ __FBSDID("$FreeBSD$"); COPY32(MODINFO_METADATA | mm->md_type, a, c); \ COPY32(mm->md_size, a, c); \ if (c) \ - i386_copyin(mm->md_data, a, mm->md_size); \ + archsw.arch_copyin(mm->md_data, a, mm->md_size); \ a += roundup(mm->md_size, sizeof(uint64_t));\ }