这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » [求助]:Page fault 错误,急。。

共4条 1/1 1 跳转至

[求助]:Page fault 错误,急。。

菜鸟
2007-01-17 00:02:17     打赏

我现在在vxworks下调试PCI的驱动程序,

pci的配置空间配置好,

然后进行device create,出现下面的问题:

Exception number 14: Task: 0x2fec3654 (t2)

Page Fault
Program Counter: 0x0341d03a
Status Register: 0x00010202
Error Code : 0x00000000
3eb7ee wdbFuncCallLibInit+ee : dpio2Start ([0, 0, 0, 0, 0])
343ddb0 dpio2Start +70 : dpio2DevCreate (2fec35bc, 1, eeeeeeee, eeeeeeee)
343e782 dpio2DevCreate +242: __17CDpio2HwInterfaceRC10CPciDevice (307ff894, 307ff958, 1,
343e551)
342c18b __17CDpio2HwInterfaceRC10CPciDevice+bb : createControlRegisters__17CDpio2HwInterf
ace (307ff894, 6, 307ff948, 342c0e1)
342fa42 createControlRegisters__17CDpio2HwInterface+132: __16CControlRegisterUiUi (307ff8
80, fe000004, 0, 342f921)
value = 0 = 0x0

请教大家是什么问题,急,谢谢!!




关键词: 求助     fault     错误    

菜鸟
2007-01-17 02:26:00     打赏
2楼
If you want your issue to be resolved, tell us the CPU type.

菜鸟
2007-01-17 17:11:00     打赏
3楼

在Tornado2.2下,vxworks5.5的,

目标机的CPU是pentium4的。


菜鸟
2007-01-17 20:47:00     打赏
4楼
Sorry, I don't know much about x86. However, most of page fault errors were caused by invalid address, which CPU couldn't translate to physical address. Another case is probably protections on some regime of address space. The address with protection probably doesn't allow you writing and forced writing will cause page fault also.

Back to your problem, check you are using a valid address at first. If you are sure you used a valid address, then check the address has been protected or not. However, it's very difficult to check the specified address was protected or not.

共4条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]