* now init SSE on all CPUs, as I noted cr4 wasn't set correctly

* this fixes the use of SSE instructions here on a dual core.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29051 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2009-01-26 22:57:49 +00:00
parent edd0e35777
commit e293302d3d
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ x86_get_mtrr(uint32 index, uint64 *_base, uint64 *_length, uint8 *_type)
}
static void
extern "C" void
init_sse(void)
{
if (!x86_check_feature(IA32_FEATURE_SSE, FEATURE_COMMON)
+3
View File
@@ -42,6 +42,7 @@ static uint32 sCPUOSIds[B_MAX_CPU_COUNT];
static uint32 sAPICVersions[B_MAX_CPU_COUNT];
extern bool gUsingIOAPIC;
extern void init_sse(void);
static uint32
apic_read(uint32 offset)
@@ -196,6 +197,8 @@ arch_smp_per_cpu_init(kernel_args *args, int32 cpu)
TRACE(("arch_smp_init_percpu: setting up the apic on cpu %ld\n", cpu));
setup_apic(args, cpu);
init_sse();
return B_OK;
}