Received: by mail.netbsd.org (Postfix, from userid 605) id 5016484EED; Sun, 9 Apr 2023 08:17:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6624E84EEA for ; Sun, 9 Apr 2023 08:17:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id WasnrAnO1VuL for ; Sun, 9 Apr 2023 08:17:57 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id F1D8984CBC for ; Sun, 9 Apr 2023 08:17:56 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id EF54AFA84; Sun, 9 Apr 2023 08:17:56 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 9 Apr 2023 08:17:56 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/arch/amd64/include To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20230409081756.EF54AFA84@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Taylor R Campbell" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: riastradh Date: Sun Apr 9 08:17:56 UTC 2023 Modified Files: src/sys/arch/amd64/include: cpu.h Log Message: amd64: Make curlwp and curcpu() flushable. The only effect of the `volatile' qualifier on an asm block with outputs is to force the instructions to appear in the generated code, even if the outputs end up being unused. Since these instructions have no (architectural) side effects -- provided %gs is set correctly, which must be the case here -- there's no need for the volatile qualifier, so nix it. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/sys/arch/amd64/include/cpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.