FreeBSD/sys/x86/x86/local_apic.c
/*
 * Wait delay microseconds for IPI to be sent.  If delay is -1, we
 * wait forever.
 */
Wait delay microseconds for IPI to be sent.  If delay is -1, we
wait forever.
Wait delay microseconds for IPI to be sent . If delay is - 1 we wait forever .
static int
native_lapic_ipi_wait(int delay)
{
	uint64_t rx;
	if (x2apic_mode)
		return (1);
	for (rx = 0; delay == -1 || rx < lapic_ipi_wait_mult * delay; rx++) {
		if ((lapic_read_icr_lo() & APIC_DELSTAT_MASK) ==
		    APIC_DELSTAT_IDLE)
			return (1);
		ia32_pause();
	}
	return (0);
}
static int native_lapic_ipi_wait ( int delay ) { uint64_t rx ; if ( x2apic_mode ) return ( 1 ) ; for ( rx = 0 ; delay == -1 || rx < lapic_ipi_wait_mult * delay ; rx ++ ) { if ( ( lapic_read_icr_lo ( ) & APIC_DELSTAT_MASK ) == APIC_DELSTAT_IDLE ) return ( 1 ) ; ia32_pause ( ) ; } return ( 0 ) ; }
Wait delay microseconds for IPI to be sent.
Wait delay microseconds for IPI to be sent .
/* LAPIC_ICR.APIC_DELSTAT_MASK is undefined in x2APIC mode */