Subject: Re: ADBDIRECT bug
To: Colin Wood <cwood@ichips.intel.com>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-mac68k
Date: 05/05/1998 22:01:44
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!
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:
             0        1        2        3        4        5        6        7
dreg: 0000009C 00000004 00000000 00002104 0000009C 00000004 00000004 00000008
areg: FF80B000 00000000 0010DBCC 00000000 00540F40 000EB33C 00167BFC FFFFCFFC

Kernel stack (00167AEC):
167AEC: 000DAE16 00167B38 00000080 00000000 00002104 0000009C 00000004 00000004
167B0C: 00000008 0010DBCC 00000000 00540F40 000EB33C 00000001 00167BFC 00003094
167B2C: 00000008 00000525 FF80C600 0000009C 00000004 00000000 00002104 0000009C
167B4C: 00000004 00000004 00000008 FF80B000 00000000 0010DBCC 00000000 00540F40
167B6C: 000EB33C 00167BFC FFFFCFFC 00000000 2704000B 25F47008 00167B9C 05250025
167B8C: 00250025 FF80C600 0010DC68 FFFFFFFF 00000000 00002104 000F0124 00167BFC
167BAC: 000B23EA 00000000 00000096 00000002 00000004 00000002 000F0124 000E661A
167BCC: 00167BF4 00167BD0 00000000 00000009 0000000A 00000002 0010CDA4 000E661A
167BEC: 00000000 00000000 00167C28 000DB042 00167C04 000B2E0A 00167C0C 000B4800
167C0C: 00167C30 000DBE5C 00000002 000000AF 00009C04 0000000A 00000002 00000008
167C2C: 000E661E 00167CB0 000033BC 00167C3C 00000000 00000003 000000AF 00009C04
167C4C: 0000000A 00000002 00000008 00000008 0080B000 0080B000 000E661E 000E661A
167C6C: 00540F40 000EB33C 00167CB0 00167C78 00000000 2004000B 0E4C0064 00000000
167C8C: 00000000 00000000 00000000 000EB33C 01AB04FE 00000000 000F0103 00000000
167CAC: 00000000 00167CF0 000B136C 00000008 00000000 00000000 00167D46 00000000
167CCC: 000EB33C 00540F80 0002B03C 000AFE96 00000005 000E661E 00167CF0 0002B04E
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
_config_attach(540f80,e6402,167d6c,af1e4,0) + 28e
_obio_search(540f80,e6402,0,e6396,e6402) + 54
_mapply(167db4,e6402) + 3c
_config_search(af206,540f80,0,af1a2,0) + 56
_obio_attach(540fc0,540f80,0,540fc0,0) + 24
_config_attach(540fc0,e63ca,0,0,540fc0) + 28e
_mainbus_search(540fc0,e63ca,0,e63a2,e63ca) + 2e
_mapply(167e8c,e63ca) + 3c
_config_search(d76f0,540fc0,0,d76c2,0) + 56
_mainbus_attach(0,540fc0,d2741,d2741,d2741) + 1e
_config_attach(0,e63ae,d2741,0,0) + 28e
_config_rootfound(d2741,d2741) + 3a
_configure(d3f1b,3e8,3e8000,d3f0a,3bca000) + 18
_cpu_startup(e71c4,a540,9aa0,8004025a,ffffcffc) + 44a
_main(3660480,11,2a5e2,16b000,1000) + 44
_low() + 2
db>


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.

	hauke



--
"It's never straight up and down"     (DEVO)