Subject: Re: Amiga 3000 video strangeness - next thing
To: Frank Wille <frank@phoenix.owl.de>
From: Michael L. Hitch <mhitch@gemini.msu.montana.edu>
List: port-amiga
Date: 06/05/2007 10:58:30
On Sat, 2 Jun 2007, Frank Wille wrote:

> ite at grfet1:  not configured
> trap type 0, code = 1c5, v = 30a0014
> pid = 0, lid = 1, pc = 00101892, ps = 2010, sfc = 1, dfc = 1
> Registers:
>              0        1        2        3        4        5        6        7
> dreg: 00000000 00174BE0 00000000 00000000 000D3E18 00000000 00000000 00000003
> areg: 030A0014 00811D90 0DFFFFFC 030A0014 001B5F78 00200000 001BBF60 0DFFFFFC
>
> Kernel stack (001BBE08):C 001BBEA4 00000080 0015568F 00000000 000001C5 030A0014 00000000
> 1BBE28: 001BBE90 001256B4 00000000 000001C5 030A0014 001BBEA4 00000000 00000000
> 1BBE48: 000D3E18 00000000 00000000 0DFFFFFC 030A0014 001B5F78 00000001 00000000
> 1BBE68: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> 1BBE88: 00000000 00000000 001BBF60 00002058 00000000 000001C5 030A0014 00000000
> 1BBEA8: 00174BE0 00000000 00000000 000D3E18 00000000 00000000 00000003 030A0014
> 1BBEC8: 00811D90 0DFFFFFC 030A0014 001B5F78 00200000 001BBF60 0DFFFFFC 00000000
> 1BBEE8: 20100010 1892B008 0E2C01C5 66024E75 030A0014 030A0014 00174BE0 0ED00040
> 1BBF08: 0010189A 00101898 00101896 4E7560FF 00400040 000F11AF 00000000 00000003
> 1BBF28: 00000040 00000040 C0200000 001BBF48 0000FFFF 00000000 0016A0D8 000BE348
> 1BBF48: 030A0014 00000000 00000000 000AD303 0DFFFFFC 00000000 001BBF74 000A5612
> 1BBF68: 030A0014 0016A0D8 000D3E18 001BBF84 000D3D34 0016A0D8 000D3E18 001BBFA8
> 1BBF88: 000934F2 00000000 00000000 000AD303 0DFFFFFC 00000000 001B5F78 00200000
> 1BBFA8: 0035B676 0000261C 001BBFB4 00000000 00000000 00000000 00000000 00000000
> 1BBFC8: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> 1BBFE8: 00000000 00000000 0DFFFFFC 00000000 00000000 00000000
> panic: Bus error
> Stopped in pid 0.1 (system) at  netbsd:cpu_Debugger+0x6:        unlk    a6
> db> bt
> cpu_Debugger(0,30a0014,1bbea4,1bbe24,1bbe28) + 6
> panic(155772,0,1bbe90,1256b4,0) + 118
> panictrap(0,1c5,30a0014,1bbea4) + 36
> trap(0,1c5,30a0014) + 238
> mutex_enter(?)
> specificdata_key_create(30a0014,16a0d8,d3e18,1bbf84,d3d34) + c
> proc_specific_key_create(16a0d8,d3e18) + 12
> ksem_init(0,0,ad303,dfffffc,0) + 4a
> main(1bbfb4) + 124
> start() + 1c2
> db>

  I would be curios to know what's at the trapped instruction.  I'm
guessing it's in mutex_enter(), but the stack trace doesn't show that.
Use the pc value from the trap information:

x/i 00101892

  I have a suspicion that it may be the casl instruction.  I didn't know
if that would work on all amigas or not.  [I know it's not supported for
chip memory access and not supposed to be used, but I figured it's
unlikely there's an amiga configuation that would be using chip memory
for kernel memory and didn't worry about it.]

Michael