Use a function instead of a non-portable, GCC-specific asm() entry.
This commit is contained in:
parent
e40ab3e98e
commit
181cb2165a
@ -32,6 +32,7 @@
|
|||||||
#include <sys/mutex.h>
|
#include <sys/mutex.h>
|
||||||
#include <sys/proc.h>
|
#include <sys/proc.h>
|
||||||
|
|
||||||
|
#include <machine/cpufunc.h>
|
||||||
#include <machine/smptests.h> /** TEST_TEST1 */
|
#include <machine/smptests.h> /** TEST_TEST1 */
|
||||||
#include <machine/smp.h>
|
#include <machine/smp.h>
|
||||||
#include <machine/mpapic.h>
|
#include <machine/mpapic.h>
|
||||||
@ -567,7 +568,7 @@ apic_ipi_singledest(int cpu, int vector, int delivery_mode)
|
|||||||
#endif /* DETECT_DEADLOCK */
|
#endif /* DETECT_DEADLOCK */
|
||||||
|
|
||||||
eflags = read_eflags();
|
eflags = read_eflags();
|
||||||
__asm __volatile("cli" : : : "memory");
|
disable_intr();
|
||||||
icr_hi = lapic.icr_hi & ~APIC_ID_MASK;
|
icr_hi = lapic.icr_hi & ~APIC_ID_MASK;
|
||||||
icr_hi |= (CPU_TO_ID(cpu) << 24);
|
icr_hi |= (CPU_TO_ID(cpu) << 24);
|
||||||
lapic.icr_hi = icr_hi;
|
lapic.icr_hi = icr_hi;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user