Hello all,
If there is static class objects in C++ file ,syslink load dsp fail.
If there is not static class object in C++ file, load sucessfully as the flowing:
Attached to slave procId 0.
[c6xdsp ] Remote Debug Shared Memory @ 0xbf000000
[m3video] Remote Debug Shared Memory @ 0xbf010820
[m3vpss ] Remote Debug Shared Memory @ 0xbf021040
Loaded file ../firmware/dvr_rdk_fw_c6xdsp_2048M_256M.xe674 on slave procId 0.
Started slave procId 0.
After Ipc_loadcallback status [0x00000000]
If there is static class objects in C++ file ,syslink load dsp fail as the flowing :
Attached to slave procId 0.
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = cb0fc000
[00000000] *pgd=8b05f031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
last sysfs file: /sys/devices/virtual/syslinkipc/syslinkipc_MultiProc/uevent
Modules linked in: syslink
CPU: 0 Not tainted (2.6.37 #1)
PC is at memcpy+0x8c/0x330
LR is at DM8168DSPPROC_read+0x50/0x80 [syslink]
pc : [<c01c6c4c>] lr : [<bf0145d0>] psr: 00000013
sp : cb0f7c1c ip : 0000001c fp : cb0f7c64
r10: f11f178c r9 : d5134000 r8 : bf0adf88
r7 : cb0f7cec r6 : d5134000 r5 : 00000000 r4 : bf0adf88
r3 : cb0f7cec r2 : ffffffe4 r1 : 00000000 r0 : d5134000
Flags: nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: 8b0fc019 DAC: 00000015
Process fw_load.out (pid: 604, stack limit = 0xcb0f62e8)
Stack: (0xcb0f7c1c to 0xcb0f8000)
7c00: 00000000
7c20: d5134000 cb0f7cec bf0adf88 d5134000 bf0adf88 bf0145d0 00000000 cb0f7cec
7c40: d5134000 cb0f7c50 d4e35000 00000000 cb0f7cec d5134000 cb0f7c9c cb0f7c68
7c60: bf0022e4 bf01458c 00000000 cb0f7cec d5134000 00000002 cb0f7c9c d4e4d000
7c80: 00000002 cb0f7cec d5134000 d5134000 cb0f7cd4 cb0f7ca0 bf0036b4 bf00229c
7ca0: 00000003 cb0f7cec d5134000 00000000 d4f4e000 00000000 bf0adf88 00000004
7cc0: 00000001 d4e41000 cb0f7d14 cb0f7cd8 bf00a3f0 bf003630 d5134000 00000001
7ce0: 00000004 f11f178c bf0adf88 00000004 d4efd000 d5134000 d50fd000 00000001
7d00: 00000000 00000001 cb0f7d2c cb0f7d18 bf00e208 bf00a380 f11f178c bf009fb4
7d20: cb0f7dac cb0f7d30 bf00cb98 bf00e1f8 f11f178c cb0f7d40 c014a52c 00000000
7d40: 00000000 f19a4df8 00000000 00000012 d4f5d000 d4efd01c d4f4b000 d4fef000
7d60: d50f4df8 00000001 001369d8 00000000 00000002 00000008 00000000 d4f4e000
7d80: cb0f7dc4 03046000 d4e41000 d4e3b000 00000000 00000000 00000000 bf0adf88
7da0: cb0f7dec cb0f7db0 bf009c28 bf00c280 d4f48000 00000000 00000000 00000000
7dc0: d0b21000 d4f4b000 d4e3b000 d4f48000 00000000 00000000 bf0adf88 00000000
7de0: cb0f7e24 cb0f7df0 bf001d4c bf009ba8 00000000 cb0f7ec8 00000000 00000000
7e00: d4e4d000 00000000 d4f48000 00000000 cb0f7ec8 00000000 cb0f7e64 cb0f7e28
7e20: bf002db0 bf001cf4 00000000 cb0f7ec8 00000000 00000000 0000002f be908a50
7e40: 00000000 c020e0a2 d4f48000 00000000 cb0f6000 00000000 cb0f7efc cb0f7e68
7e60: bf0051dc bf002d34 00000000 cb0f7ec8 cb0f7e94 cb0f7e80 c020b74c c020b6f0
7e80: 00000000 60000013 cc27ce00 cca20a20 cb0f6000 0000001c 40098000 00000000
7ea0: cb0f7ecc cb0f7eb0 c006f250 0485f000 d4e4d000 be908d77 0000002f 00000000
7ec0: 00000000 00000000 00000000 cb0f7ed8 c00f6f14 c008fd58 cb0f7ef4 cc555180
7ee0: 00000008 be908a50 00000008 00000000 cb0f7f74 cb0f7f00 c00d957c bf00492c
7f00: cc27ce00 00000000 00000000 00000000 00000000 0000001c cc21da88 00000002
7f20: cca209c0 00000000 cb0f6000 00000000 cb0f7f6c cb0f7f40 c00cbed0 c00f6d10
7f40: 00000000 cc21da80 0000001c 00000000 cc19ba80 be908a50 c020e0a2 00000008
7f60: 00000000 cb0f6000 cb0f7fa4 cb0f7f78 c00d9648 c00d90b8 00000022 00000001
7f80: ffffffff 00000000 0007eb64 00051a04 00000036 c004b568 00000000 cb0f7fa8
7fa0: c004b3c0 c00d95fc 00000000 0007eb64 00000008 c020e0a2 be908a50 00000001
7fc0: 00000000 0007eb64 00051a04 00000036 be908a50 c020e0a2 00000000 00000000
7fe0: 0007ee7c be908a18 0002b1c0 403751cc 60000010 00000008 00000000 00000000
Backtrace:
[<bf014580>] (DM8168DSPPROC_read+0x0/0x80 [syslink]) from [<bf0022e4>] (Processor_read+0x54/0x84 [syslink])
r7:d5134000 r6:cb0f7cec r5:00000000 r4:d4e35000
[<bf002290>] (Processor_read+0x0/0x84 [syslink]) from [<bf0036b4>] (ProcMgr_read+0x90/0xe8 [syslink])
r8:d5134000 r7:d5134000 r6:cb0f7cec r5:00000002 r4:d4e4d000
[<bf003624>] (ProcMgr_read+0x0/0xe8 [syslink]) from [<bf00a3f0>] (ElfLoaderTrgWrite_read+0x7c/0xb0 [syslink])
r7:d4e41000 r6:00000001 r5:00000004 r4:bf0adf88
[<bf00a374>] (ElfLoaderTrgWrite_read+0x0/0xb0 [syslink]) from [<bf00e208>] (DLIF_read+0x1c/0x2c [syslink])
[<bf00e1ec>] (DLIF_read+0x0/0x2c [syslink]) from [<bf00cb98>] (DLOAD_load+0x924/0xa5c [syslink])
[<bf00c274>] (DLOAD_load+0x0/0xa5c [syslink]) from [<bf009c28>] (ElfLoader_load+0x8c/0xfc [syslink])
[<bf009b9c>] (ElfLoader_load+0x0/0xfc [syslink]) from [<bf001d4c>] (Loader_load+0x64/0x94 [syslink])
[<bf001ce8>] (Loader_load+0x0/0x94 [syslink]) from [<bf002db0>] (ProcMgr_load+0x88/0xe8 [syslink])
[<bf002d28>] (ProcMgr_load+0x0/0xe8 [syslink]) from [<bf0051dc>] (ProcMgrDrv_ioctl+0x8bc/0x14d4 [syslink])
[<bf004920>] (ProcMgrDrv_ioctl+0x0/0x14d4 [syslink]) from [<c00d957c>] (do_vfs_ioctl+0x4d0/0x544)
r8:00000000 r7:00000008 r6:be908a50 r5:00000008 r4:cc555180
[<c00d90ac>] (do_vfs_ioctl+0x0/0x544) from [<c00d9648>] (sys_ioctl+0x58/0x7c)
r9:cb0f6000 r8:00000000 r7:00000008 r6:c020e0a2 r5:be908a50
r4:cc19ba80
[<c00d95f0>] (sys_ioctl+0x0/0x7c) from [<c004b3c0>] (ret_fast_syscall+0x0/0x30)
r8:c004b568 r7:00000036 r6:00051a04 r5:0007eb64 r4:00000000
Code: e4915004 e4916004 e4917004 e4918004 (e491e004)
---[ end trace 0bf2b7a111ab1216 ]---
best regarts
chen