| 497 | } |
| 498 | |
| 499 | static void |
| 500 | mptable_setup_cpus_handler(u_char *entry, void *arg) |
| 501 | { |
| 502 | proc_entry_ptr proc; |
| 503 | u_int *cpu_mask; |
| 504 | |
| 505 | switch (*entry) { |
| 506 | case MPCT_ENTRY_PROCESSOR: |
| 507 | proc = (proc_entry_ptr)entry; |
| 508 | if (proc->cpu_flags & PROCENTRY_FLAG_EN) { |
| 509 | lapic_create(proc->apic_id, proc->cpu_flags & |
| 510 | PROCENTRY_FLAG_BP); |
| 511 | if (proc->apic_id < MAX_LAPIC_ID) { |
| 512 | cpu_mask = (u_int *)arg; |
| 513 | *cpu_mask |= (1ul << proc->apic_id); |
| 514 | } |
| 515 | } |
| 516 | break; |
| 517 | } |
| 518 | } |
| 519 | |
| 520 | static void |
| 521 | mptable_count_items_handler(u_char *entry, void *arg __unused) |
nothing calls this directly
no test coverage detected