MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mptable_setup_cpus_handler

Function mptable_setup_cpus_handler

freebsd/x86/x86/mptable.c:499–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499static void
500mptable_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
520static void
521mptable_count_items_handler(u_char *entry, void *arg __unused)

Callers

nothing calls this directly

Calls 1

lapic_createFunction · 0.85

Tested by

no test coverage detected