Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci update the is_bound flag for local memory too



details:   https://anonhg.NetBSD.org/src/rev/62b3f00ba07e
branches:  trunk
changeset: 535165:62b3f00ba07e
user:      drochner <drochner%NetBSD.org@localhost>
date:      Sun Aug 11 12:36:21 2002 +0000

description:
update the is_bound flag for local memory too

diffstat:

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

diffs (35 lines):

diff -r 6195515440e3 -r 62b3f00ba07e sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c    Sun Aug 11 12:22:48 2002 +0000
+++ b/sys/dev/pci/agp_i810.c    Sun Aug 11 12:36:21 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: agp_i810.c,v 1.12 2002/01/22 17:29:36 augustss Exp $   */
+/*     $NetBSD: agp_i810.c,v 1.13 2002/08/11 12:36:21 drochner Exp $   */
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.12 2002/01/22 17:29:36 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.13 2002/08/11 12:36:21 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -408,7 +408,7 @@
                WRITE4(AGP_I810_GTT + (u_int32_t)(offset >> AGP_PAGE_SHIFT) * 4,
                       i | 3);
        }
-
+       mem->am_is_bound = 1;
        return 0;
 }
 
@@ -432,6 +432,6 @@
 
        for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE)
                WRITE4(AGP_I810_GTT + (i >> AGP_PAGE_SHIFT) * 4, 0);
-
+       mem->am_is_bound = 0;
        return 0;
 }



Home | Main Index | Thread Index | Old Index