Activated CPU speed conversion factor calculation again.

Added a spin() function.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8046 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-06-18 15:23:18 +00:00
parent baf3145769
commit 2ac69a4d66

View File

@ -218,20 +218,33 @@ check_cpu_features()
}
void
// #pragma mark -
extern "C" void
spin(bigtime_t microseconds)
{
bigtime_t time = system_time();
while((system_time() - time) < microseconds)
;
}
extern "C" void
cpu_boot_other_cpus()
{
smp_boot();
}
void
extern "C" void
cpu_init()
{
if (check_cpu_features() != B_OK)
panic("You need a Pentium or higher in order to boot!\n");
//gKernelArgs.arch_args.system_time_cv_factor = calculate_cpu_conversion_factor();
gKernelArgs.arch_args.system_time_cv_factor = calculate_cpu_conversion_factor();
gKernelArgs.num_cpus = 1;
// this will eventually be corrected later on
}