Use a function instead of a non-portable, GCC-specific asm() entry.

This commit is contained in:
markm 2002-09-21 19:03:42 +00:00
parent 6b1c92e89e
commit 03d0f482ba

View File

@ -32,6 +32,7 @@
#include <sys/mutex.h>
#include <sys/proc.h>
#include <machine/cpufunc.h>
#include <machine/smptests.h> /** TEST_TEST1 */
#include <machine/smp.h>
#include <machine/mpapic.h>
@ -567,7 +568,7 @@ apic_ipi_singledest(int cpu, int vector, int delivery_mode)
#endif /* DETECT_DEADLOCK */
eflags = read_eflags();
__asm __volatile("cli" : : : "memory");
disable_intr();
icr_hi = lapic.icr_hi & ~APIC_ID_MASK;
icr_hi |= (CPU_TO_ID(cpu) << 24);
lapic.icr_hi = icr_hi;