主题 : 请教一个linux驱动的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 35323
精华: 0
发帖: 25
金钱: 135 两
威望: 27 点
综合积分: 50 分
注册时间: 2010-12-30
最后登录: 2017-09-13
楼主  发表于: 2011-01-19 20:10

 请教一个linux驱动的问题

mini6410  
 
我在编写一个LINUX下的4x4矩阵键盘的驱动的时候,使用了EINT6,9,11,16这四个外部中断,键值已经成功被识别,
 
但是总是会出现下面的问题:
------------[ cut here ]------------
WARNING: at net/sched/sch_generic.c:258 dev_watchdog+0x154/0x238()
NETDEV WATCHDOG: eth0 (dm9000): transmit queue 0 timed out
Modules linked in: test
[<c016d464>] (unwind_backtrace+0x0/0xe4) from [<c0184a5c>] (warn_slowpath_common+0x4c/0x64)
[<c0184a5c>] (warn_slowpath_common+0x4c/0x64) from [<c0184af4>] (warn_slowpath_fmt+0x2c/0x3c)
[<c0184af4>] (warn_slowpath_fmt+0x2c/0x3c) from [<c049f118>] (dev_watchdog+0x154/0x238)
[<c049f118>] (dev_watchdog+0x154/0x238) from [<c018ecd4>] (run_timer_softirq+0x160/0x1fc)
[<c018ecd4>] (run_timer_softirq+0x160/0x1fc) from [<c018990c>] (__do_softirq+0x88/0x118)
[<c018990c>] (__do_softirq+0x88/0x118) from [<c0189d24>] (irq_exit+0x44/0x58)
[<c0189d24>] (irq_exit+0x44/0x58) from [<c0167074>] (asm_do_IRQ+0x74/0x94)
[<c0167074>] (asm_do_IRQ+0x74/0x94) from [<c0167a48>] (__irq_svc+0x48/0xa0)
Exception stack(0xcd607f18 to 0xcd607f60)
7f00:                                                       ccddd6e0 bee2acdb
7f20: 00000001 cd607f80 00000001 ccddd6e0 bee2acdb cd607f80 00000001 cd606000
7f40: 00000000 bee2ace4 bf000090 cd607f60 c01d86cc bf000090 a0000013 ffffffff
[<c0167a48>] (__irq_svc+0x48/0xa0) from [<bf000090>] (rectkey_read+0x0/0xc8 [test])
[<bf000090>] (rectkey_read+0x0/0xc8 [test]) from [<00000000>] (0x0)
---[ end trace 2397b317f91d688a ]---
nfs: server 192.168.1.100 not responding, still trying
 
由于我是使用nfs挂载的,这个问题可能出在网络连接上,我通过查找发现,DM9000是使用EINT7外部中断的,我在驱动中要关闭EINT6,9,11,19的,是不是这个原因造成这个错误的啊?大伙们帮帮忙啊!