Implemented SSE2/3 support (tested with VLC).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16569 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2005, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Copyright 2002-2006, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
||||
@@ -24,7 +24,8 @@
|
||||
// cpuid eax 1 features
|
||||
#define IA32_FEATURE_MTRR (1UL << 12)
|
||||
#define IA32_FEATURE_GLOBAL_PAGES (1UL << 13)
|
||||
|
||||
#define IA32_FEATURE_SSE (1UL << 25)
|
||||
#define IA32_FEATURE_FXSR (1UL << 24)
|
||||
|
||||
// cr4 flags
|
||||
#define IA32_CR4_GLOBAL_PAGES (1UL << 7)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2005, The Haiku Team. All rights reserved.
|
||||
* Copyright 2002-2006, The Haiku Team. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
||||
@@ -11,6 +11,8 @@
|
||||
|
||||
#include <arch_cpu.h>
|
||||
|
||||
#define _ALIGNED(bytes) __attribute__((aligned(bytes)))
|
||||
// move this to somewhere else, maybe BeBuild.h?
|
||||
|
||||
struct farcall {
|
||||
uint32 *esp;
|
||||
@@ -29,12 +31,12 @@ struct arch_thread {
|
||||
struct farcall current_stack;
|
||||
struct farcall interrupt_stack;
|
||||
|
||||
// 512 byte floating point save point - this must be 16 byte aligned
|
||||
uint8 fpu_state[512];
|
||||
|
||||
// used to track interrupts on this thread
|
||||
struct iframe_stack iframes;
|
||||
|
||||
// 512 byte floating point save point
|
||||
uint8 fpu_state[512];
|
||||
};
|
||||
} _ALIGNED(16);
|
||||
|
||||
struct arch_team {
|
||||
// gcc treats empty structures as zero-length in C, but as if they contain
|
||||
|
||||
Reference in New Issue
Block a user