| 1074 | } |
| 1075 | |
| 1076 | static void |
| 1077 | lapic_enable(void) |
| 1078 | { |
| 1079 | uint32_t value; |
| 1080 | |
| 1081 | /* Program the spurious vector to enable the local APIC. */ |
| 1082 | value = lapic_read32(LAPIC_SVR); |
| 1083 | value &= ~(APIC_SVR_VECTOR | APIC_SVR_FOCUS); |
| 1084 | value |= APIC_SVR_FEN | APIC_SVR_SWEN | APIC_SPURIOUS_INT; |
| 1085 | if (lapic_eoi_suppression) |
| 1086 | value |= APIC_SVR_EOI_SUPPRESSION; |
| 1087 | lapic_write32(LAPIC_SVR, value); |
| 1088 | } |
| 1089 | |
| 1090 | /* Reset the local APIC on the BSP during resume. */ |
| 1091 | static void |
no test coverage detected