case MISCREG_APIC_CURRENT_COUNT:
panic("Local APIC Current Count register unimplemented.\n");
break;
- case MISCREG_APIC_DIVIDE_COUNT:
- panic("Local APIC Divide Count register unimplemented.\n");
- break;
}
}
switch (miscReg) {
case MISCREG_APIC_CURRENT_COUNT:
panic("Local APIC Current Count register unimplemented.\n");
break;
- case MISCREG_APIC_DIVIDE_COUNT:
- panic("Local APIC Divide Count register unimplemented.\n");
+ case MISCREG_APIC_DIVIDE_CONFIGURATION:
+ newVal = val & 0xB;
break;
}
setRegNoEffect(miscReg, newVal);
MISCREG_APIC_LVT_ERROR,
MISCREG_APIC_INITIAL_COUNT,
MISCREG_APIC_CURRENT_COUNT,
- MISCREG_APIC_DIVIDE_COUNT,
- MISCREG_APIC_END = MISCREG_APIC_DIVIDE_COUNT,
+ MISCREG_APIC_DIVIDE_CONFIGURATION,
+ MISCREG_APIC_END = MISCREG_APIC_DIVIDE_CONFIGURATION,
MISCREG_APIC_INTERNAL_STATE,
regNum = MISCREG_APIC_CURRENT_COUNT;
break;
case 0x3E0:
- regNum = MISCREG_APIC_DIVIDE_COUNT;
+ regNum = MISCREG_APIC_DIVIDE_CONFIGURATION;
break;
default:
// A reserved register field.