FreeBSD/sys/x86/acpica/madt.c
/*
 * Find the local APIC ID associated with a given ACPI Processor ID.
 */
Find the local APIC ID associated with a given ACPI Processor ID.
Find the local APIC ID associated with a given ACPI Processor ID .
static int
madt_find_cpu(u_int acpi_id, u_int *apic_id)
{
	int i;
	for (i = 0; i <= MAX_APIC_ID; i++) {
		if (!lapics[i].la_enabled)
			continue;
		if (lapics[i].la_acpi_id != acpi_id)
			continue;
		*apic_id = i;
		return (0);
	}
	return (ENOENT);
}
static int madt_find_cpu ( u_int acpi_id , u_int * apic_id ) { int i ; for ( i = 0 ; i <= MAX_APIC_ID ; i ++ ) { if ( ! lapics [ i ] . la_enabled ) continue ; if ( lapics [ i ] . la_acpi_id != acpi_id ) continue ; * apic_id = i ; return ( 0 ) ; } return ( ENOENT ) ; }
Find the local APIC ID associated with a given ACPI Processor ID.
Find the local APIC ID associated with a given ACPI Processor ID .