diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2024-06-11 16:02:36 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2024-06-11 16:02:36 +0000 |
commit | dc27ea4362bb06ff31e941f592f81a72971acc50 (patch) | |
tree | 582af7eda58b1b9e807628ddc93d9f968dc6526d /sys/arch/riscv64/include | |
parent | 566a2f7787693879f83a360a7eab0a7c68e182d4 (diff) |
Enable UVM percpu cache on riscv64
Proved stable in multiple ports bulk builds. ok kettenis@ phessler@
Diffstat (limited to 'sys/arch/riscv64/include')
-rw-r--r-- | sys/arch/riscv64/include/cpu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/riscv64/include/cpu.h b/sys/arch/riscv64/include/cpu.h index f7b6dca18b4..2b14083c31e 100644 --- a/sys/arch/riscv64/include/cpu.h +++ b/sys/arch/riscv64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.23 2024/04/29 13:07:18 jsg Exp $ */ +/* $OpenBSD: cpu.h,v 1.24 2024/06/11 16:02:35 jca Exp $ */ /* * Copyright (c) 2019 Mike Larkin <mlarkin@openbsd.org> @@ -72,6 +72,7 @@ #include <sys/device.h> #include <sys/sched.h> #include <sys/srp.h> +#include <uvm/uvm_percpu.h> struct cpu_info { struct device *ci_dev; /* Device corresponding to this CPU */ @@ -108,6 +109,8 @@ struct cpu_info { #ifdef MULTIPROCESSOR struct srp_hazard ci_srp_hazards[SRP_HAZARD_NUM]; +#define __HAVE_UVM_PERCPU + struct uvm_pmr_cache ci_uvm; volatile int ci_flags; uint64_t ci_satp; vaddr_t ci_initstack_end; |