summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2009-06-06 10:56:30 +0000
committeroga <oga@openbsd.org>2009-06-06 10:56:30 +0000
commit108aa99ed6141ce320f6eba4ac09312e4372ceeb (patch)
tree1b41f80b9f83ce6d19c14aebc171a195c9af6fd4
parentquick path for pkg cfl: check whether the new package conflicts with (diff)
downloadwireguard-openbsd-108aa99ed6141ce320f6eba4ac09312e4372ceeb.tar.xz
wireguard-openbsd-108aa99ed6141ce320f6eba4ac09312e4372ceeb.zip
unfuck slightly, offset was wrong.
-rw-r--r--sys/dev/pci/agp_i810.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c
index 7ed939c079e..64d1817f038 100644
--- a/sys/dev/pci/agp_i810.c
+++ b/sys/dev/pci/agp_i810.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agp_i810.c,v 1.55 2009/06/06 06:02:44 oga Exp $ */
+/* $OpenBSD: agp_i810.c,v 1.56 2009/06/06 10:56:30 oga Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
@@ -695,7 +695,7 @@ agp_i810_bind_memory(void *sc, struct agp_memory *mem, bus_size_t offset)
if (mem->am_type == 2) {
for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE)
- agp_i810_bind_page(isc, offset + i,
+ agp_i810_bind_page(isc, isc->isc_apaddr + offset + i,
mem->am_physical + i, 0);
mem->am_offset = offset;
mem->am_is_bound = 1;
@@ -725,7 +725,8 @@ agp_i810_unbind_memory(void *sc, struct agp_memory *mem)
if (mem->am_type == 2) {
for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE)
- agp_i810_unbind_page(isc, mem->am_offset + i);
+ agp_i810_unbind_page(isc, isc->isc_apaddr +
+ mem->am_offset + i);
mem->am_offset = 0;
mem->am_is_bound = 0;
return (0);