Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Also unbind the right offset.



details:   https://anonhg.NetBSD.org/src/rev/88a80068c53c
branches:  trunk
changeset: 330837:88a80068c53c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 23 14:38:08 2014 +0000

description:
Also unbind the right offset.

diffstat:

 sys/dev/pci/agp_i810.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 38c137dec4a7 -r 88a80068c53c sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c    Wed Jul 23 14:23:09 2014 +0000
+++ b/sys/dev/pci/agp_i810.c    Wed Jul 23 14:38:08 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: agp_i810.c,v 1.108 2014/07/23 14:23:09 riastradh Exp $ */
+/*     $NetBSD: agp_i810.c,v 1.109 2014/07/23 14:38:08 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.108 2014/07/23 14:23:09 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.109 2014/07/23 14:38:08 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1376,7 +1376,7 @@
        case AGP_I810_MEMTYPE_DCACHE:
                KASSERT(isc->chiptype == CHIP_I810);
                for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE)
-                       (void)agp_i810_write_gtt_entry(isc, i, 0);
+                       (void)agp_i810_unbind_page(isc, mem->am_offset + i);
                break;
        case AGP_I810_MEMTYPE_HWCURSOR:
                for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE)



Home | Main Index | Thread Index | Old Index