diff options
author | 2002-10-21 15:58:21 +0000 | |
---|---|---|
committer | 2002-10-21 15:58:21 +0000 | |
commit | 89c803e17d13e70b48d19fb5496f1142ce9b7e0b (patch) | |
tree | db24eccf789680ad326610162d75a83548eba947 | |
parent | mention Intel 21145, jason@ (diff) | |
download | wireguard-openbsd-89c803e17d13e70b48d19fb5496f1142ce9b7e0b.tar.xz wireguard-openbsd-89c803e17d13e70b48d19fb5496f1142ce9b7e0b.zip |
try harder to sync in dmamap_sync
-rw-r--r-- | sys/arch/hppa/hppa/mainbus.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/mainbus.c b/sys/arch/hppa/hppa/mainbus.c index 2499784e03b..043fc1091dc 100644 --- a/sys/arch/hppa/hppa/mainbus.c +++ b/sys/arch/hppa/hppa/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.36 2002/10/13 15:53:39 mickey Exp $ */ +/* $OpenBSD: mainbus.c,v 1.37 2002/10/21 15:58:21 mickey Exp $ */ /* * Copyright (c) 1998-2001 Michael Shalayeff @@ -707,7 +707,8 @@ mbus_dmamap_sync(void *v, bus_dmamap_t map, bus_addr_t offset, bus_size_t len, { if (ops & (BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE)) - __asm __volatile ("syncdma"); + __asm __volatile ("sync\n\tsyncdma\n\tsync\n\t" + "nop\n\tnop\n\tnop\n\tnop\n\tnop\n\tnop\n\tnop\n\t"); if (ops & BUS_DMASYNC_PREREAD) pdcache(HPPA_SID_KERNEL, map->_dm_va + offset, len); |