From owner-freebsd-mobile Thu Jan 22 10:55:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA10451 for freebsd-mobile-outgoing; Thu, 22 Jan 1998 10:55:08 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from jli.com (jli.com [199.2.111.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA10446 for ; Thu, 22 Jan 1998 10:55:06 -0800 (PST) (envelope-from uucp@jli.com) Received: by jli.com (Smail3.1.29.1 #3) id m0xvRlL-0002WeC; Thu, 22 Jan 98 10:54 PST Message-Id: Received: (qmail 13183 invoked from network); 22 Jan 1998 18:50:35 -0000 Received: from softdnserror (127.0.0.1) by softdnserror with SMTP; 22 Jan 1998 18:50:35 -0000 To: mobile@FreeBSD.ORG Subject: SVEC NE2000 "clone" doom and gloom MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13178.885495004.1@cloud.rain.com> Date: Thu, 22 Jan 1998 10:50:04 -0800 From: Bill Trost Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I did some beating on pccardd, and saw some problems. As you will recall, the config info had two memory blocks: Memory descriptor 1 blk length = 0x400 card addr = 0x000 host addr = 0xd4000 Memory descriptor 2 blk length = 0x4000 card addr = 0x4000 host addr = 0xd4000 pccardd blindly tries to map the first block. Since the block is less than the memory quanta of MEMUNIT, bit_fns ends up getting asked to allocate a memory region of size zero (ROUNDOFF BUG!), which it can't do. So, I "fix" the bug using gdb, and am rewarded with a hang in the PIOCSDRV ioctl at the end of setup_slot (can't even get DDB to say hello). Using gdb to make pccardd use the other memory region, or to not use the memory regions at all, produces a similar hang. AARGH! Yeah, sure, NE2000-compatible my foot!