Subject: Re: ADBDIRECT bug
To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
From: Colin Wood <cwood@ichips.intel.com>
List: port-mac68k
Date: 05/05/1998 21:07:35
Hauke Fath wrote:
> At 22:09 Uhr +0200 04.05.1998, Colin Wood wrote:
> 
> >Hmmmm....can you turn on ADB_DEBUG and see how far it's getting with the
> >extra debug messages enabled?
> 
> Done. Interesting phenomena show up:
> 
> 
> NetBSD 1.3E (FG54) #22: Tue May  5 21:32:48 CEST 1998
>     hauke@q700.hf.org:/usr/src/sys/arch/mac68k/compile/FG54
> Apple Macintosh Quadra 700  (68040)
> cpu: delay factor 301
> real mem = 71303168
> avail mem = 62693376
> using 1000 buffers containing 4096000 bytes of memory
> mrg: kernel has no ROM vectors for this machine!

well, there's the problem.  that line is obviously quite wrong!  perhaps
the uvm stuff has somehow screwed up the mapping of the lowmem globals or
the mac rom space.

> mainbus0 (root)
> obio0 at mainbus0
> adb0 at obio0 (ADB event device)
> adb: using II series hardware support
> adb: ADBReInit complete
> uvm_fault(0xf16f0, 0xff80c000, 0, 0x1) -> 0x1
>   type 8, code [mmu,,ssw]: 525
> trap type 8, code = 0x525, v = 0xff80c600
> kernel program counter = 0xb25f4
> kernel: MMU fault trap
> pid = 0, pc = 000B25F4, ps = 2704, sfc = 1, dfc = 1
> Registers:

[snip]

> panic: MMU fault
> Stopped at      _Debugger+0x6:  unlk    a6
> db> t
> _Debugger(2704,10cda4,167b24,dae34,daa37) + 6
> _panic(daa37,0,2104,9c,4) + 50
> _trap(8,525,ff80c600) + 236
> faultstkadj(167c0c,b4800,167c30,dbe5c,2) + 0
> _adb_intr(167c30,dbe5c,2,af,9c04) + 24
> _mrg_adbintr(2) + 4
> _via1_intr(167c3c) + 40
> _lev1intr(?)
> _extdms_init(8,0,0,167d46,0) + e
> _adb_init(afe96,167d48,28e52,540f80,540f40) + 2e
> _adbattach(540f80,540f40,167d6c,540f80,540f80) + e

[snip]

> This is from freshly supped sources. Scott's obio and nubus dir changes are
> in, and it would look like the UVM default is already in there, too.

Hmmm...I don't think that the obio and nubus changes would affect this at
all, but I could be wrong.

I'll CC Scott on this and perhaps he'll know something....

Later.

-- 
Colin Wood                                 cwood@ichips.intel.com
Component Design Engineer - PMD                 Intel Corporation
-----------------------------------------------------------------
I speak only on my own behalf, not for my employer.