diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-05-05 13:28:57 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-05-05 13:28:57 +0000 |
commit | 42813281a04b7d5246f5119d2a2c277f30956802 (patch) | |
tree | c9e41bae7b4c51454581fea7948f460ebbc8c182 | |
parent | 7fd7864c288fda3c4997c022c1bffe7ab6897996 (diff) |
use fence iorw,iorw for bus_space_barrier()
ok kettenis@
-rw-r--r-- | sys/arch/riscv64/include/bus.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/riscv64/include/bus.h b/sys/arch/riscv64/include/bus.h index 547cba26404..1087af00918 100644 --- a/sys/arch/riscv64/include/bus.h +++ b/sys/arch/riscv64/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.2 2021/04/24 21:37:41 kettenis Exp $ */ +/* $OpenBSD: bus.h,v 1.3 2021/05/05 13:28:56 jsg Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB Sweden. All rights reserved. * @@ -315,7 +315,7 @@ static inline void bus_space_barrier(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset, bus_size_t length, int flags) { - __asm__ volatile ("sfence.vma" ::: "memory");//XXX What?? CMPE + __asm__ volatile ("fence iorw,iorw" ::: "memory"); } #define BUS_SPACE_BARRIER_READ 0x01 /* force read barrier */ #define BUS_SPACE_BARRIER_WRITE 0x02 /* force write barrier */ |