FreeBSD/sys/x86/x86/local_apic.c
/*
 * Adjust the TPR of the current CPU so that it blocks all interrupts below
 * the passed in vector.
 */
Adjust the TPR of the current CPU so that it blocks all interrupts below
the passed in vector.
Adjust the TPR of the current CPU so that it blocks all interrupts below the passed in vector .
static void
lapic_set_tpr(u_int vector)
{
#ifdef CHEAP_TPR
	lapic_write32(LAPIC_TPR, vector);
#else
	uint32_t tpr;
	tpr = lapic_read32(LAPIC_TPR) & ~APIC_TPR_PRIO;
	tpr |= vector;
	lapic_write32(LAPIC_TPR, tpr);
#endif
}
static void lapic_set_tpr ( u_int vector ) { #ifdef CHEAP_TPR lapic_write32 ( LAPIC_TPR , vector ) ; #else uint32_t tpr ; tpr = lapic_read32 ( LAPIC_TPR ) & ~ APIC_TPR_PRIO ; tpr |= vector ; lapic_write32 ( LAPIC_TPR , tpr ) ; #endif }
Adjust the TPR of the current CPU so that it blocks all interrupts below
 the passed in vector.
Adjust the TPR of the current CPU so that it blocks all interrupts below the passed in vector .