[MODERN FEATURES] SSE

This commit is contained in:
thomas committed 2017-03-27 23:09:08 +02:00
1 parent 253cd84a1f
commit 0b27ddca2c
7 files changed
+69 -2

No files matched your search

+7
View File
@@ -1,6 +1,7 @@
#include <scheduler.h>
#include <list.h>
#include <debug.h>
#include <sse.h>
LIST(thread_t, ready_queue);
@@ -60,6 +61,7 @@ void scheduler()
new->state = THREAD_STATE_RUNNING;
set_last_thread(new);
switch_process(new->process);
sse_restore(new->sse_registers);
switch_thread(scheduler_th, new);
}
}
@@ -70,6 +72,11 @@ void schedule()
thread_t *old = get_current_thread();
if(old)
{
sse_save(old->sse_registers);
}
switch_process(0);
switch_thread(old, scheduler_th);
}