From 8b2f07b69ea2a857ea0f4f2b3659dcc2e7acb079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 29 Sep 2004 12:51:34 +0000 Subject: [PATCH] Removed sleep(), it now uses spin() from cpu.cpp - which is the exact same thing anyway. This fixes the build as unistd.h defined sleep() as well. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9108 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/platform/bios_ia32/smp_boot.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/kernel/boot/platform/bios_ia32/smp_boot.c b/src/kernel/boot/platform/bios_ia32/smp_boot.c index 58b41de842..a45dfae315 100644 --- a/src/kernel/boot/platform/bios_ia32/smp_boot.c +++ b/src/kernel/boot/platform/bios_ia32/smp_boot.c @@ -50,16 +50,6 @@ static struct mp_flt_struct *mp_flt_ptr = NULL; static int smp_get_current_cpu(void); -static void -sleep(uint64 time) -{ - uint64 start = system_time(); - - while(system_time() - start <= time) - ; -} - - static uint32 map_page(uint32 paddr, uint32 vaddr) { @@ -427,7 +417,7 @@ smp_boot_all_cpus(void) ; /* wait 10ms */ - sleep(10000); + spin(10000); /* is this a local apic or an 82489dx ? */ num_startups = (gKernelArgs.arch_args.cpu_apic_version[i] & 0xf0) ? 2 : 0; @@ -445,7 +435,7 @@ smp_boot_all_cpus(void) apic_write(APIC_ICR1, config); /* wait */ - sleep(200); + spin(200); while ((apic_read(APIC_ICR1)& 0x00001000) == 0x00001000) ;