Lines Matching refs:cpu
66 lapic_cpu_map(int apic_id, int cpu)
69 assert(cpu < MAX_CPUS);
70 cpu_to_lapic[cpu] = apic_id;
71 lapic_to_cpu[apic_id] = cpu;
75 * Retrieve the local apic ID a cpu.
82 ml_get_apicid(uint32_t cpu)
84 if(cpu >= (uint32_t)MAX_CPUS)
85 return 0xFFFFFFFF; /* Return -1 if cpu too big */
88 return (uint32_t)cpu_to_lapic[cpu];
96 return 0xFFFFFFFF; /* Return -1 if cpu too big */
98 /* Return the cpu ID (or -1 if not configured) */