Received: by mail.netbsd.org (Postfix, from userid 605) id BC28D84E8E; Sun, 13 Feb 2022 13:41:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id F156784D84 for ; Sun, 13 Feb 2022 13:41:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id bRdsaBISLE1Z for ; Sun, 13 Feb 2022 13:41:44 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 7A56384CE7 for ; Sun, 13 Feb 2022 13:41:44 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 77C85FB24; Sun, 13 Feb 2022 13:41:44 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 13 Feb 2022 13:41:44 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/arch/m68k/include To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20220213134144.77C85FB24@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 Feb 13 13:41:44 UTC 2022 Modified Files: src/sys/arch/m68k/include: lock.h Log Message: m68k: __cpu_simple_unlock audit. - Use `cc' clobbers in asm volatile because they touch the condition codes. - Use `memory' clobbers in asm volatile so the compiler doesn't move up loads and stores in the critical section at _other_ addresses than the lock so they happen before __cpu_simple_lock or __cpu_simple_lock_try. - Not sure if we have any (or if there even are any?) multicore m68k systems out there, but __cpu_simple_unlock needs __insn_barrier either way so the compiler doesn't delay loads and stores prior to __cpu_simple_unlock so they happen after it. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/arch/m68k/include/lock.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.