diff options
Diffstat (limited to 'i386/i386/mp_desc.c')
-rw-r--r-- | i386/i386/mp_desc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c index e6fcbf62..4b5a78ea 100644 --- a/i386/i386/mp_desc.c +++ b/i386/i386/mp_desc.c @@ -269,7 +269,7 @@ cpu_ap_main() int cpu = apic_get_cpu_kernel_id(apic_id); do { - asm volatile ("pause" : : : "memory"); + cpu_pause(); } while (bspdone != cpu); __sync_synchronize(); @@ -319,7 +319,7 @@ start_other_cpus(void) bspdone++; do { - asm volatile ("pause" : : : "memory"); + cpu_pause(); } while (machine_slot[cpu].running == FALSE); __sync_synchronize(); |