From: chungto@ampex.com (Tony Chung)
Subject: How to debug kernel (alpha instruction set)
Date: 1997/01/10 [thread overview]
Message-ID: <E3rqys.K96@ampex.com> (raw)
I got "kernel memory fault" while debuging a driver.
The crash-data.4 indiate this:
_kernel_memory_fault_data_begin:
struct {
fault_va = 0x454db8
fault_pc = 0xfffffc0000249668
fault_ra = 0x119
fault_sp = 0xffffffff86f87490
access = 0x0
status = 0x4
cpunum = 0x0
count = 0x1
pcb = 0xffffffff86f87a38
thread = 0xfffffc0000d81340
task = 0xfffffc0004faca80
proc = 0xfffffc0004facca0
}
code:
[dst_strategy:1214, 0xfffffc0000249660] blt r6, 0xfffffc0000249d00
[dst_strategy:1214, 0xfffffc0000249664] sll r19, 0x4, r19
[dst_strategy:1215, 0xfffffc0000249668] ldq r16, -32568(gp)
[dst_strategy:1213, 0xfffffc000024966c] srl r15, 0x38, r15
[dst_strategy:1214, 0xfffffc0000249670] addq r11, r19, r19
[dst_strategy:1215, 0xfffffc0000249674] ldq r27, -32552(gp)
[dst_strategy:1215, 0xfffffc0000249678] bis r31, 0x7, r23
[dst_strategy:1213, 0xfffffc000024967c] stq r15, 8(r4)
[dst_strategy:1215, 0xfffffc0000249680] ldl r8, 0(r16)
[dst_strategy:1214, 0xfffffc0000249684] lda r20, 1214(r31)
[dst_strategy:1215, 0xfffffc0000249688] stq r23, 0(sp)
[dst_strategy:1214, 0xfffffc000024968c] addl r6, 0x1, r6
[dst_strategy:1214, 0xfffffc0000249690] stl r26, 0(r19)
[dst_strategy:1215, 0xfffffc0000249694] bis r31, 0x8, r23
[dst_strategy:1214, 0xfffffc0000249698] stl r20, 4(r19)
[dst_strategy:1215, 0xfffffc000024969c] bis r31, 0x2, r17
[dst_strategy:1214, 0xfffffc00002496a0] stq r14, 8(r19)
[dst_strategy:1215, 0xfffffc00002496a4] bis r31, 0x3, r18
[dst_strategy:1215, 0xfffffc00002496a8] stq r16, 24(sp)
[dst_strategy:1215, 0xfffffc00002496ac] bis r31, 0x1, r16
[dst_strategy:1214, 0xfffffc00002496b0] stl r6, 0(r10)
[dst_strategy:1215, 0xfffffc00002496b4] bis r31, 0x4, r19
[dst_strategy:1215, 0xfffffc00002496b8] stq r23, 8(sp)
[dst_strategy:1215, 0xfffffc00002496bc] bis r31, 0x5, r20
[dst_strategy:1215, 0xfffffc00002496c0] stq r8, 16(sp)
[dst_strategy:1215, 0xfffffc00002496c4] bis r31, 0x6, r21
[dst_strategy:1215, 0xfffffc00002496c8] bis r31, r31, r31
[dst_strategy:1215, 0xfffffc00002496cc] bsr r26, dummy_func(line 1041)
So the faulting virtual program counter has this: ldq r16, -32568(gp)
So what does this gp actually mean?
I don't have any manual about alpha instruction set or how the stack is organized.
And I don't have two dec machines to run kdebug...so any help is appreciated.
If interested, I can provide further details like vmunix.4/vmcore.4.
Thanks.
--
=============================
Tony Chung
chungto@poboxes.com
http://www.netforward.com/poboxes/?chungto
reply other threads:[~1997-01-10 5:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox