summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-01-22 02:13:41 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-01-22 02:13:41 +0000
commitb087a93d0df98c48e68dd663b4ddd05b5dd26ac4 (patch)
treec9b57825ff0f5c3feda84110857b6dfa9fb574fd
parent99cfff0ecac54dcd33e2776aa8e5f47f65e7bae1 (diff)
ugh, unless we flush, always purge
-rw-r--r--sys/arch/hppa/hppa/mainbus.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/hppa/hppa/mainbus.c b/sys/arch/hppa/hppa/mainbus.c
index a6201bd31bc..a4d1aa82226 100644
--- a/sys/arch/hppa/hppa/mainbus.c
+++ b/sys/arch/hppa/hppa/mainbus.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: mainbus.c,v 1.39 2003/01/21 17:32:40 mickey Exp $ */
+/* $OpenBSD: mainbus.c,v 1.40 2003/01/22 02:13:40 mickey Exp $ */
/*
- * Copyright (c) 1998-2001 Michael Shalayeff
+ * Copyright (c) 1998-2003 Michael Shalayeff
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -705,10 +705,9 @@ void
mbus_dmamap_sync(void *v, bus_dmamap_t map, bus_addr_t offset, bus_size_t len,
int ops)
{
-
if (ops & BUS_DMASYNC_PREWRITE)
fdcache(HPPA_SID_KERNEL, map->_dm_va + offset, len);
- else if (ops & BUS_DMASYNC_PREREAD)
+ else
pdcache(HPPA_SID_KERNEL, map->_dm_va + offset, len);
/* for either operation sync the shit away */