Subject: Big problem with a new kernel and panics
To: Chris Hopps <chopps@water.emich.edu>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: amiga-dev
Date: 10/23/1995 01:47:29
Hi,

I finally had the time to update from my 29.9. system to a 21.10. system
and all works fine till I made a new kernel, logged in and typ startx
and got a kernel panic:

vm_faul(13c00, 5000000, 3, 0) -> 1
 type 8, code [mmu,,ssw]: 4a5
pid = 190, pc = 000A5F90, ps = 2010, sfx = 0001, dfc = 0001

_Debugger(227e8,c6411,285bbf4,8,28bbf8) + 6
_panic(c6411,4a5,285bc44,c6ad2,8) + 34
_panictrap(8,4a5,50003c4,285bc98,59f600) + 394
_trap(8,45,50003c4) + 2e6
_addrerr(?)
_cv_load_mon(583a00,d760a,a05,583a00,285bd94) + f4
_cv_mode(583a00,1,0,583a00,285bdac) + 46
_grfon(a04,a05,4,285bdfc,285bdd8) + 56
_grfioctl(a05,20004701,285bdd8,3,59f600) + 126
_spec_ioctl(285bdfc) + 50
_vn_ioctl(683b00,20004701,285bec8,59f600) + e6
_sys_ioctl(59f600,285bf88,285bf80) + 214
_syscall(36) + 13a
_trap0() + e

and 'show reg' shows this:

[..]
a3	0xd760a		_cl_console + 0x1f6
[..]
a5	0x5000000	_end + 0x4f0f984

I only had grf0, grf3 and grf5 in the kernel, but when I remove grf3 then
i got _cc_a2024_default_colors instead of _cl_console.
And later I got panics during the boot of netbsd at the point where mountd
is started:

vm_fault
[..]
_addrerr(?)
_cfs_mountedon
_vfs_export
_adosfs_mount
_sys_mount
_syscall

I think this has to do with the changes to the 040.

Bernd

This is my working kernel:

NetBSD 1.0A (VEEGO) #265: Sun Oct 15 13:57:40 MET 1995
    bernd@arresum:/src/sys/arch/amiga/compile/VEEGO
Amiga 4000 (m68040 CPU/MMU/FPU)
real  mem = 20971520 (2560 pages)
avail mem = 18087936 (2208 pages)
using 140 buffers containing 1146880 bytes of memory
memory segment 0 at 08000000 size 01400000
memory segment 1 at 00000000 size 00200000
Physical memory segments:
Physical segment 0 at 08136000 size 2404 pages 0
mainbus0 (root)
clock0 at mainbus0: system hz 100 hardware hz 709379
ser0 at mainbus0: input fifo 512 output fifo 32
par0 at mainbus0
kbd0 at mainbus0
grfcc0 at mainbus0
grf0 at grfcc0: width 640 height 400 colors 4
ite0 at grf0: rows 50 cols 79 repeat at (30/100)s next at (10/100)s has keyboard
fdc0 at mainbus0: dmabuf pa 0x1e0c48
fd0 at fdc0: 3.5dd 80 cyl, 2 head, 11 sec [9 sec], 512 bytes/sec
idesc0 at mainbus0zbus0 at mainbus0: i/o size 0x04080000
wesc0 at zbus0 rom 0x40000000 man/pro 2203/19
wesc0: siop id 7 reset V2
scsibus0 at wesc0
[..]
grfcv0 at zbus0 rom 0x44000000 man/pro 8512/34
grf5 at grfcv0: width 0 height 0 colors 0
ite at grf5 not configured
grfcv: CyberVision64 with 4MB being used
mfc0 at zbus0 rom 0xe90000 man/pro 2092/16
mfcs0 at mfc0: input fifo 1024 output fifo 128
mfcs1 at mfc0: input fifo 1024 output fifo 128
ae0 at zbus0 rom 0xea0000 man/pro 2167/201
ae0: hardware address 00:80:10:f0:00:13 32K  chip-revision: B0
bah0 at zbus0 rom 0xeb0000 man/pro 514/9: link addr 0x79(121)
[..]