Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2000 20:50:19 +0900
From:      Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
To:        imp@village.org
Cc:        iwasaki@jp.FreeBSD.org, FreeBSD-mobile@FreeBSD.org
Subject:   Re: [NEWCARD] patch against panics (Re: cvs commit: src/sys/dev/pcic i82365.c i82365_isa.c i82365var.h src/sys/dev/pccard card_if.m pccard.c pccard_cis.c pccardvar.h) 
Message-ID:  <200004181150.UAA94278@tasogare.imasy.or.jp>
In-Reply-To: Your message of "Sun, 16 Apr 2000 17:13:52 -0600" <200004162313.RAA22858@billy-club.village.org>
References:  <200004162313.RAA22858@billy-club.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Warner-san, I got it!

> : I've just tried the latest NEWCARD, and noticed that someting wrong with
> : bus_space stuff.  Here is the patch to avoid panics, not for the solution :-)
> : 
> : # I'm going to bed...zzz
> 
> OK.  Thanks!  I'll look into this.  Tomorrow the Federal and State
> Taxes are due, so I've been busy this weekend putting the finishing
> touches on my Tax Return.

The problem was the initialization of tuple.ptr. it seems that we have
garbage in it and this bug originally came from NetBSD.
There're still panics but now that we can read the tuple, can go to
the next step!

Index: pccard_cis.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/pccard/pccard_cis.c,v
retrieving revision 1.8
diff -u -r1.8 pccard_cis.c
--- pccard_cis.c	2000/04/13 06:42:57	1.8
+++ pccard_cis.c	2000/04/18 11:39:36
@@ -139,6 +139,7 @@
 	DPRINTF(("cis mem map %x\n", (unsigned int) tuple.memh));
 
 	tuple.mult = 2;
+	tuple.ptr = 0;
 
 	longlink_present = 1;
 	longlink_common = 1;



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004181150.UAA94278>