From nobody Thu Oct 26 22:27:49 2023 X-Original-To: dev-commits-src-branches@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 4SGgR949dtz4yMGt; Thu, 26 Oct 2023 22:27:49 +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 4SGgR91zfFz3djk; Thu, 26 Oct 2023 22:27:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698359269; 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=4g5IhfTi+ZetaMK5WQuvSkBvjP8cBHsiGzVyl5Z8GkU=; b=sgYw/qs0H0IlA+U63gN//CbHfdbBsgmaX4l4YDIi5ooMNCDXAA/5OXF7tWBkuuE2W4Q9r+ Deck6LSbfHSHKgX6de7yz544fH08Zy6ZOLOO6tSkE707f9ZTCN5TDBhGOa5+C37pesp795 1Y9J6RwvUUGdudTcqqQULCiun3ceWSKmBWpk0gPOBv6rxs704qoABi3/lFAlJX5DADL18G +meWlF0/LG2P9o6DZP0H6mJG9XhpgBlixhlnc+uXsOXgpqyQ/BDMxXHhHMy2oqao/LONYu zEokxFoiljjMtKV8w4uNpOj8bW+vV92pzpEU33eUrfwxva2FauY1vKrNdzaPgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698359269; 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=4g5IhfTi+ZetaMK5WQuvSkBvjP8cBHsiGzVyl5Z8GkU=; b=F7op36TxLsAARh0Ul72jKntMFrhQP46nT69srJU4BYOZXaGMdZPwMlaQcYeCilDvAVs0mB 58YV+pMb88y7uEzV1PqCvRhHekV1+eRIfg/BRBxiWiQ1tNcXPrsAhATnxzRXV0BYA8L9By TpCkExZDSnevTxXeHLnmScoM9Z1ZwNXBp9b9nYee8/sbLBvuIazL4P9pd0EspcmiYDEvqP ymomdRMM50Fodw4vmXNQcu4ymPgipGB5lP8uPpvwmmaWQTHcS+R0tjYKl1hzXJ9KefrMRb 9NTKNrH9u/pbah3vQIG0ThiEECFhD/ktmS90swh6GIrLX3RrNfncy8SMfb8Wgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698359269; a=rsa-sha256; cv=none; b=HntTOtlYMD54G9+OJ7966rJuFLlvqOMuTSRhSIqtWcZYJB79vGRkS5VQetfMAG5q/GDY83 Mmlkhs9I5xQkx58gCN7p7f8BLGIhrMY/aBCxzPo+Dk8J6Pv6jpJMj5QmmNhV2D2dFe0c8R Rzsu1LbWUGSJVFNwf5YZDTw/EJodrutvFd6/B6h5Y6mitDDLXEvEBOYkzCvfLntmo3hIks gFmm6bxI4H1GKKNyfVQ3+V8bxoHF8tQQp7IVSLn0UZPwtuujNZ8TQTn1gQxKwanxJGwAF3 f/zpSbmNHQyQ4wf/fKo9Fqbgz9ettN6zzHsQiiM+VJdFOiYiTk10/bFtSK9P9w== 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 4SGgR913GSzpl9; Thu, 26 Oct 2023 22:27:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39QMRnZ8075010; Thu, 26 Oct 2023 22:27:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39QMRnBd075007; Thu, 26 Oct 2023 22:27:49 GMT (envelope-from git) Date: Thu, 26 Oct 2023 22:27:49 GMT Message-Id: <202310262227.39QMRnBd075007@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 4e24a146dca4 - stable/13 - mips: add enough glue for membarrier(2) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 4e24a146dca44b84a29bffc52e346ae6a6f5da51 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4e24a146dca44b84a29bffc52e346ae6a6f5da51 commit 4e24a146dca44b84a29bffc52e346ae6a6f5da51 Author: Konstantin Belousov AuthorDate: 2023-10-26 22:26:46 +0000 Commit: Konstantin Belousov CommitDate: 2023-10-26 22:27:25 +0000 mips: add enough glue for membarrier(2) This is direct commit to stable/13. --- sys/mips/include/pmap.h | 2 ++ sys/mips/mips/vm_machdep.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/sys/mips/include/pmap.h b/sys/mips/include/pmap.h index b38895c9c8c2..eeff154a297d 100644 --- a/sys/mips/include/pmap.h +++ b/sys/mips/include/pmap.h @@ -161,6 +161,8 @@ extern vm_paddr_t physmem_desc[PHYS_AVAIL_COUNT]; extern vm_offset_t virtual_avail; extern vm_offset_t virtual_end; +#define PMAP_WANT_ACTIVE_CPUS_NAIVE + #define pmap_page_get_memattr(m) (((m)->md.pv_flags & PV_MEMATTR_MASK) >> PV_MEMATTR_SHIFT) #define pmap_page_is_mapped(m) (!TAILQ_EMPTY(&(m)->md.pv_list)) #define pmap_page_is_write_mapped(m) (((m)->a.flags & PGA_WRITEABLE) != 0) diff --git a/sys/mips/mips/vm_machdep.c b/sys/mips/mips/vm_machdep.c index 3758cdb7152f..48b5ff405628 100644 --- a/sys/mips/mips/vm_machdep.c +++ b/sys/mips/mips/vm_machdep.c @@ -470,6 +470,11 @@ cpu_set_user_tls(struct thread *td, void *tls_base) return (0); } +void +cpu_sync_core(void) +{ +} + #ifdef DDB #include