| 239 | } |
| 240 | |
| 241 | static void __nosanitizethread |
| 242 | lapic_write32(enum LAPIC_REGISTERS reg, uint32_t val) |
| 243 | { |
| 244 | |
| 245 | if (x2apic_mode) { |
| 246 | mfence(); |
| 247 | lfence(); |
| 248 | wrmsr(MSR_APIC_000 + reg, val); |
| 249 | } else { |
| 250 | *(volatile uint32_t *)(lapic_map + reg * LAPIC_MEM_MUL) = val; |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | static void __nosanitizethread |
| 255 | lapic_write32_nofence(enum LAPIC_REGISTERS reg, uint32_t val) |
no test coverage detected