summaryrefslogtreecommitdiff
path: root/kernel/include/arch/x86_64/cpu/sse.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/arch/x86_64/cpu/sse.hpp')
-rw-r--r--kernel/include/arch/x86_64/cpu/sse.hpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/kernel/include/arch/x86_64/cpu/sse.hpp b/kernel/include/arch/x86_64/cpu/sse.hpp
deleted file mode 100644
index 6b21d60..0000000
--- a/kernel/include/arch/x86_64/cpu/sse.hpp
+++ /dev/null
@@ -1,37 +0,0 @@
-
-#include <cstdint>
-
-#pragma once
-
-#define DEFAULT_SSE_FLAGS ((1 << 9) | (1 << 10) | (1 << 1))
-#define SSE_XSAVE_SUPPORT (1 << 26)
-#define SSE_XSAVE_CR4 (1 << 18)
-
-#define SSE_CONTROL_DEFAULT ((1 << 0) | (1 << 1))
-
-#define SSE_CHECK_AND_SET(bit) \
-if(a & bit) \
- sse_control |= bit;
-
-typedef struct {
- std::uint16_t dumb0;
- std::uint32_t dumb1;
- std::uint16_t dumb2;
- std::uint64_t dumb3;
- std::uint64_t dumb4;
- std::uint32_t dumb5;
-} __attribute__((packed)) fpu_head_t;
-
-namespace arch {
- namespace x86_64 {
- namespace cpu {
- class sse {
- public:
- static void init();
- static std::uint64_t size();
- static void save(std::uint8_t* buf);
- static void load(std::uint8_t* buf);
- };
- }
- }
-} \ No newline at end of file