Fernando Gonzalez(deleted)
|
Kernel crash on write to non-existent memory (Freescale 8641d Eval board MPC8641HPCN)
|
Fernando Gonzalez(deleted)
01/21/2010 5:38 PM
post45730
|
Kernel crash on write to non-existent memory (Freescale 8641d Eval board MPC8641HPCN)
Platform: QNX 640 on MPC8641D Argo Navis Board
The code below causes a kernel crash:
pPage = (unsigned short *) mmap_device_memory(
NULL,
0x10000,
PROT_READ | PROT_WRITE /* | PROT_NOCACHE */ ,
0,
0xF0000000 );
*pPage = 0;
#################### Sample program run
# ./trigger 1
Test compiled on: Jan 21 2010 14:09:42
Before mmap() of address 0xf0000000
After mmap(). Before *pPage = 0 {pPage=0x80100000}
Shutdown[0,0] S/C/F=10/3/33 C/D=0020b098/00274bb8
QNX Version 6.4.0 Release 2008/10/21-10:59:55EDT
[0]PID-TID=184329-1 P/T FL=00000000/00000000 "./trigger"
ppcbe context[0ff90e8c]:
0000: fe355fa4 4803fdf0 48048b5c 48041d88 fe35c9f4 ee6b2800 00002800 00000000
0020: 00000000 00000000 00000000 00000000 4803fb44 48049c98 00000000 00000000
0040: 00000000 00000000 00000000 0ffe8a58 4803fe80 00000002 4803fe94 4803fea0
0060: 4803fec4 00000000 4803ffbb 48041d88 80100000 48040a10 fe37e3b0 48041d88
0080: 00000000 fe37e3b0 0014d930 fe35c8c0 28000042 20000000 00000000 00000000
00a0: 00000000
instruction[fe35c8c0]:
80 7e fb 74 48 02 27 55 2f 9f 00 00 41 9e 00 18 80 1f 00 48 2f 80 00 00 41 9e
stack[4803fdf0]:
0000: 4803fe00 fe35c738 fe37e3b0 48041d88 4803fe20 fe355fa4 ffffffff ffffffff
0020: 80100000 00000001 00000000 f0000000 4803fe40 48040770 4803fe94 00000000
0040: 4803ff14 4803ff18 0ffe6000 4803fe94 4803fe60 480408ac 0ffe6000 00000000
0060: 4803fe80 4803ffaf 4803fe94 00000000 4803fe70 48041d48 4803fea0 4803fec4
<<<<<<<< RESET >>>>>>>>>>>>
Any help you can provide would be appreciated. Attached log has the sample program, and another kernel crash sample.
Regards,
-Fernando Gonzalez
|
|
|