Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Oops -- gtt_off is relative to mmadr, not absolute.
details: https://anonhg.NetBSD.org/src/rev/266889df7684
branches: trunk
changeset: 796278:266889df7684
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed May 28 02:08:52 2014 +0000
description:
Oops -- gtt_off is relative to mmadr, not absolute.
diffstat:
sys/dev/pci/agp_i810.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 98cdb57211c6 -r 266889df7684 sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c Tue May 27 23:34:43 2014 +0000
+++ b/sys/dev/pci/agp_i810.c Wed May 28 02:08:52 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: agp_i810.c,v 1.80 2014/05/27 12:51:04 riastradh Exp $ */
+/* $NetBSD: agp_i810.c,v 1.81 2014/05/28 02:08:52 riastradh Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.80 2014/05/27 12:51:04 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.81 2014/05/28 02:08:52 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -443,8 +443,8 @@
if (gtt_bar == 0) {
isc->gtt_bst = isc->bst;
isc->gtt_size = (mmadr_size - gtt_off);
- error = bus_space_map(isc->gtt_bst, gtt_off, isc->gtt_size,
- mmadr_flags, &isc->gtt_bsh);
+ error = bus_space_map(isc->gtt_bst, (mmadr + gtt_off),
+ isc->gtt_size, mmadr_flags, &isc->gtt_bsh);
if (error) {
aprint_error_dev(self, "can't map GTT: %d\n", error);
error = ENXIO;
Home |
Main Index |
Thread Index |
Old Index