Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/riscv/include Add the "memory" clobber in two place...
details: https://anonhg.NetBSD.org/src/rev/4ac790edbdf2
branches: trunk
changeset: 371955:4ac790edbdf2
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Oct 20 07:18:11 2022 +0000
description:
Add the "memory" clobber in two places that it's needed.
diffstat:
sys/arch/riscv/include/pmap.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b53e6cab8414 -r 4ac790edbdf2 sys/arch/riscv/include/pmap.h
--- a/sys/arch/riscv/include/pmap.h Thu Oct 20 07:16:19 2022 +0000
+++ b/sys/arch/riscv/include/pmap.h Thu Oct 20 07:18:11 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.12 2022/10/18 04:39:38 skrll Exp $ */
+/* $NetBSD: pmap.h,v 1.13 2022/10/20 07:18:11 skrll Exp $ */
/*
* Copyright (c) 2014, 2019, 2021 The NetBSD Foundation, Inc.
@@ -104,7 +104,7 @@
static inline void
pmap_procwr(struct proc *p, vaddr_t va, vsize_t len)
{
- __asm __volatile("fence\trw,rw; fence.i");
+ __asm __volatile("fence\trw,rw; fence.i" ::: "memory");
}
#include <uvm/pmap/tlb.h>
@@ -158,7 +158,7 @@
static inline void
pmap_md_page_syncicache(struct vm_page_md *mdpg, const kcpuset_t *kc)
{
- __asm __volatile("fence\trw,rw; fence.i");
+ __asm __volatile("fence\trw,rw; fence.i" ::: "memory");
}
/*
Home |
Main Index |
Thread Index |
Old Index