- 論壇徽章:
- 0
|
您好! 做PCI linux 設(shè)備驅(qū)動中斷控制部分發(fā)生如下的錯誤:
i686/include/linux/irq.h:21,
from
/usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/interrupt.h:11,
from pci.c:21:
/usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/irq.h:16:25: error: irq_vectors.h: 沒有那個文件或目錄
In file included from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/interrupt.h:11,
from pci.c:21:
/usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/irq.h: 在頂層:
/usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/irq.h:72: 錯誤:‘NR_IRQS’ 未聲明 (不在函數(shù)內(nèi))
In file included from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/irq.h:74,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/hardirq.h:6,
from /usr/src/kernels/2.6.11-1.1369_FC4-i686/include/linux/interrupt.h:11,
from pci.c:21:
/usr/src/kernels/2.6.11-1.1369_FC4-i686/include/asm/hw_irq.h:28: 錯誤:‘NR_IRQ_VECTORS
程序是根據(jù)LINUX設(shè)備驅(qū)動程序第三版做的,我的內(nèi)核是2.6.11-1.1369_FC4 !是不是 內(nèi)核不匹配呢! 有經(jīng)驗的高人您遇到過這個問題嗎?您是如何解決的!希望您可以幫助我!謝謝您! |
|