git: 4e24a146dca4 - stable/13 - mips: add enough glue for membarrier(2)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Oct 2023 22:27:49 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4e24a146dca44b84a29bffc52e346ae6a6f5da51 commit 4e24a146dca44b84a29bffc52e346ae6a6f5da51 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-10-26 22:26:46 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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 <ddb/ddb.h>