提交 4516960f 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

compile fix for gcc 4.6.1

上级 1e523d15
...@@ -58,11 +58,10 @@ ioapicenable(int irq, int cpunum) ...@@ -58,11 +58,10 @@ ioapicenable(int irq, int cpunum)
void void
initioapic(void) initioapic(void)
{ {
int i, id, maxintr; int i, maxintr;
ioapic = (volatile struct ioapic*)IOAPIC; ioapic = (volatile struct ioapic*)IOAPIC;
maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; maxintr = (ioapicread(REG_VER) >> 16) & 0xFF;
id = ioapicread(REG_ID) >> 24;
// Mark all interrupts edge-triggered, active high, disabled, // Mark all interrupts edge-triggered, active high, disabled,
// and not routed to any CPUs. // and not routed to any CPUs.
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论