zombproc - generated kernel panic in my driver
zombproc - generated kernel panic in my driver
- Subject: zombproc - generated kernel panic in my driver
- From: "Parav Pandit" <email@hidden>
- Date: Mon, 4 Oct 2004 21:51:15 +0530
- Importance: Normal
Hi,
In my driver one thread my_Thread is created using IOKit API
IOCreatThread().
This thread does processing of Asynchronous events.
This thread runs a while(1) loop, and inside while loop waits on a semaphore
created using
semaphore_create( waiting, SYNC_FIFO_POLICY).
whenever any interrupts arrives from the PCI card, isr is handled via
HandleInterrupt(), and after completing isr, at the end it signal the
my_Thread using semaphore_signal(waiting).
With this implantation I get kernel panic at
Unresolved kernel trap(cpu 1): 0x400 - Inst access DAR=0x0000000002279000
PC=0x0000000000000000
Latest crash info for cpu 1:
Exception state (sv=0x1DE5E500)
PC=0x00000000; MSR=0x40009030; DAR=0x02279000; DSISR=0x40000000;
LR=0x00288520; R1=0x0CD9B9F0; XCP=0x00000010 (0x400 - Inst access)
Backtrace:
back trace shows this:
---------------------------------------------------
0x241998 <IOLibInit+220>: mflr r0
(gdb) x/i 0x002419D4
0x2419d4 <IOLibInit+280>: lwz r0,88(r1)
(gdb) x/i 0x1E58DCC8
0x1e58dcc8 <my_Thread+5480>: lwz r2,64(r30)
(gdb) x/i 0x1E5A126C
0x1e5aa8c4
<_ZN31com_myCompany_driver_HBAdriver20CompleteParallelTaskEP8OSObject14SCSIT
askStatus19SCSIServiceResponse+72>: lwz r1,0(r1)
(gdb) x/i 0x1E57AEC0
0x1e57aec0
<_ZN33IOSCSIParallelInterfaceController20CompleteParallelTaskEP8OSObject14SC
SITaskStatus19SCSIServiceResponse+104>: lwz r0,88(r1)
(gdb) x/i 0x1E57D57C
0x1e57d57c
<_ZN29IOSCSIParallelInterfaceDevice16CompleteSCSITaskEP8OSObject19SCSIServic
eResponse14SCSITaskStatus+332>: lwz r0,204(r30)
(gdb)
(gdb) x/i 0x003B4B24
0x3b4b24 <zombproc+405712>: xoris r4,r10,25974
(gdb) x/i 0x00241998
(gdb) x/i 0x003B4884
0x3b4884 <zombproc+405040>: andi. r13,r19,25957
Why I get kernel panic on this zombproc and why my driver jump to zombproc
function from the driver thread?
How can I avoid my driver to jump to zomproc?
Regards,
Parav Pandit
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden