aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/smp.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-09-11 11:21:44 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-09-11 11:21:44 +0100
commitf7f39e3ac3944a3a56cfc57696347c485aea941c (patch)
tree047b450709370c721ed5bc0dc91c9e1904f07f76 /xen/arch/x86/smp.c
parent6c87e8965f14724ca668952d36f14cf8a0e687c1 (diff)
downloadxen-f7f39e3ac3944a3a56cfc57696347c485aea941c.tar.gz
xen-f7f39e3ac3944a3a56cfc57696347c485aea941c.tar.bz2
xen-f7f39e3ac3944a3a56cfc57696347c485aea941c.zip
x86: Use halt() macro instead of direct HLT asm.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/smp.c')
-rw-r--r--xen/arch/x86/smp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/arch/x86/smp.c b/xen/arch/x86/smp.c
index 550faf069b..660c26436f 100644
--- a/xen/arch/x86/smp.c
+++ b/xen/arch/x86/smp.c
@@ -319,13 +319,15 @@ int on_selected_cpus(
static void stop_this_cpu (void *dummy)
{
+ ASSERT(!local_irq_is_enabled());
+
disable_local_APIC();
hvm_cpu_down();
cpu_clear(smp_processor_id(), cpu_online_map);
for ( ; ; )
- __asm__ __volatile__ ( "hlt" );
+ halt();
}
/*