Hi everybody,
i want to write a driver for Linux running on a PPC/Virtex2 XUP Board. For testing i made a small IP-Core and a driver based on
The code of my IP-Core:
The code of the application to test the Hardware:
When i run the Application i get: Driver_open aufgerufen driver_ioctl aufgerufen REG_OUTData machine check in kernel mode. Oops: machine check, sig: 7 [#8] NIP: E001B1F4 LR: E001B1E4 CTR: 00000000 REGS: c036ff50 TRAP: 0202 Not tainted (2.6.18-rc3-smp) MSR: 00029030 CR: 24000242 XER: 00000000 TASK = df720460[1268] 'myapp' THREAD: df1e8000 GPR00: 0000032C DF1E9EC0 DF720460 0000000A 00000004 00000000 C0136F50 C0867630 GPR08: 00000008 E0020000 C03E0000 E0018000 44000228 10018D30 00000000
100FEC28 GPR16: 100F6C48 FFFFFFFF 00000000 00000000 00000000 00000000 FFFFFFFF 00000000 GPR24: 100FE748 100004F8 7FCDC864 00000003 DF1E9EC8 DF652340 80047201 7FCDC780 NIP [E001B1F4] driver_ioctl+0x170/0x178 [mymodule] LR [E001B1E4] driver_ioctl+0x160/0x178 [mymodule] Call Trace: [DF1E9EC0] [E001B1E4] driver_ioctl+0x160/0x178 [mymodule] (unreliable) [DF1E9EE0] [C0073E6C] do_ioctl+0x68/0x9c [DF1E9EF0] [C0073F58] vfs_ioctl+0xb8/0x3f4 [DF1E9F10] [C0074324] sys_ioctl+0x90/0xa0 [DF1E9F40] [C0002EF4] ret_from_syscall+0x0/0x3c Instruction dump: 7f83e378 7fe4fb78 38a00004 48000081 4bffff18 3c60e002 3863b438 48000061 3d20e002 8169bb20 80010008 900b0000 4bffff7c 7c0802a6 3c60e002 driver_close aufgerufenCan somebody help me. I'm not sure, whether the IPCore is working corretly, or the driver (maybe Makefiletroubels), or the testapplication.