From nobody Sun Sep 21 03:07:56 2025 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 4cTrlc3T6Mz68qBN; Sun, 21 Sep 2025 03:07:56 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cTrlc29xhz45DS; Sun, 21 Sep 2025 03:07:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758424076; 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=8LaP0Ti2H1ye2hLQcXho4lrZsGBUrJZLyiwiJ926XX8=; b=VguVY8Iv0vFGL8lX0++kUikjNHRTsPMWnwZ+CupRvzAnt9+pLJe0Vpmn14jUKSOvPRRku5 8vFQEcNWLExOGOZSP1qMp0CcYNKaen3HOhgMVeqHlP2NvFDZ3VxNLYaXL+Fzqym7EAXGfk iCg6pG1DPyx5CXOF1fDpqvoa4WqXfgudRGVeXT9trhxQyKg2yDrpmLOj4XbqWNs4CrIoDQ A7+FxoMQAqf5luhRRX4XckWDfnXy/mfQokTD+d3B5JUEISIVW7tE2mJScsEOVOxAE7Y2NZ yCoW7M3OL3PJGq3Td86tRKixM3sjR5+qVm5Roz2RW/jBbxJ3aqDG2CBs2Nf41w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758424076; 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=8LaP0Ti2H1ye2hLQcXho4lrZsGBUrJZLyiwiJ926XX8=; b=ucEYOB7e/19ISZKYABbHMB2M8hgqbVT9zZqJCZ/3upd3ipr3sRO7wfKkteNDundX+e7cdM 088LHkMFQOmSXQ8meWdQt6YoeTcbO3LPcbYZuG/udywPt6y1f3mAUC0ETbwX90pq7gD8Vz w3NOOARsb6Afn39/EqdJA+npvLYhVu4B+2qKuCMoSRYuS5znSn+PzBCPBxj5EHGnajTHdt 31c2wJqD8zvgpc5JMOvessVEpIBrNRmeA7yrE53qBgLKVtzoxW0iqHLsbQxBsgGGP7dfNT 1pak3LOwazZ1qkCCAqUCZHdLiX4C1mtK19HPTEc6lgd0oR76URHuVhL4AjPc2g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758424076; a=rsa-sha256; cv=none; b=NUKUYA7BBRQi13JWe9Ru4GoJtCPhf/FRpiQokMZ1AEFZym2Gy81l0P31mzlrRhNGbc2O/F k/uZQnN3tUFFyCMc13YOAV4AuJ4B1PdGgGCv5ozSB5/c5eW6YUZvBkCSCRrSC2ro5/p7oT X6FUDX8cv3R9JRSs7rYL+Yv/UOLl2MrfdzIvCYKJmgg14Ha3mpEHkxMgQ6cYnTwbcYvmqf yds1454RwrdLAZMvo9jNABTklzO5IzGsLXYkGyP2pyzZdOTOXUh6mHClz+tepz2BMJ+t3g DEDsbV1WV5I4jXBx7ZsloF6z6qZGaNJ02pK60kZP24Yc4FyRdcNy0wTokO1WAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cTrlc1nH7zwxd; Sun, 21 Sep 2025 03:07:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58L37uQp087023; Sun, 21 Sep 2025 03:07:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58L37u0e087020; Sun, 21 Sep 2025 03:07:56 GMT (envelope-from git) Date: Sun, 21 Sep 2025 03:07:56 GMT Message-Id: <202509210307.58L37u0e087020@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 5c55b2f3ba6f - main - x86: directly use clflushopt mnemonic in cpufunc.h 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5c55b2f3ba6f48575496bde2d4d86272d10a8197 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=5c55b2f3ba6f48575496bde2d4d86272d10a8197 commit 5c55b2f3ba6f48575496bde2d4d86272d10a8197 Author: Konstantin Belousov AuthorDate: 2025-09-21 03:03:09 +0000 Commit: Konstantin Belousov CommitDate: 2025-09-21 03:04:58 +0000 x86: directly use clflushopt mnemonic in cpufunc.h We already use clflushopt in support.S, there is no reason to manually construct the encoding. Initially it was done because toolchains did not supported the (then) new instruction. Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/amd64/include/cpufunc.h | 2 +- sys/i386/include/cpufunc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h index d180f5c76afb..e6c9f47ea261 100644 --- a/sys/amd64/include/cpufunc.h +++ b/sys/amd64/include/cpufunc.h @@ -76,7 +76,7 @@ static __inline void clflushopt(u_long addr) { - __asm __volatile(".byte 0x66;clflush %0" : : "m" (*(char *)addr)); + __asm __volatile("clflushopt %0" : : "m" (*(char *)addr)); } static __inline void diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h index 4bed57b5afbf..b200588b0739 100644 --- a/sys/i386/include/cpufunc.h +++ b/sys/i386/include/cpufunc.h @@ -74,7 +74,7 @@ static __inline void clflushopt(u_long addr) { - __asm __volatile(".byte 0x66;clflush %0" : : "m" (*(char *)addr)); + __asm __volatile("clflushopt %0" : : "m" (*(char *)addr)); } static __inline void