Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev iszthreepa() takes a physical address, no...



details:   https://anonhg.NetBSD.org/src/rev/3060bc2a4cdc
branches:  trunk
changeset: 545959:3060bc2a4cdc
user:      is <is%NetBSD.org@localhost>
date:      Fri Apr 18 09:18:19 2003 +0000

description:
iszthreepa() takes a physical address, not a virtual address.
This fixes PR 19175, reported and heavily debugged by Pawel Chwalowski.

diffstat:

 sys/arch/amiga/dev/grf_et.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 425d6c65d7b8 -r 3060bc2a4cdc sys/arch/amiga/dev/grf_et.c
--- a/sys/arch/amiga/dev/grf_et.c       Fri Apr 18 09:16:05 2003 +0000
+++ b/sys/arch/amiga/dev/grf_et.c       Fri Apr 18 09:18:19 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf_et.c,v 1.19 2003/01/01 00:28:58 thorpej Exp $ */
+/*     $NetBSD: grf_et.c,v 1.20 2003/04/18 09:18:19 is Exp $ */
 
 /*
  * Copyright (c) 1997 Klaus Burkert
@@ -37,7 +37,7 @@
 #include "opt_amigacons.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf_et.c,v 1.19 2003/01/01 00:28:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf_et.c,v 1.20 2003/04/18 09:18:19 is Exp $");
 
 #include "grfet.h"
 #if NGRFET > 0
@@ -538,7 +538,7 @@
                                et_fbsize = 0x100000;           /* 1 MB */
                }
                /* ZorroII can map 2 MB max ... */
-               if (!iszthreepa(gp->g_fbkva) && et_fbsize == 0x400000)
+               if (!iszthreepa(kvtop((gp->g_fbkva)) && et_fbsize == 0x400000)
                        et_fbsize = 0x200000;
                etctype = ETW32;
                etdtype = MERLINDAC;



Home | Main Index | Thread Index | Old Index