arch/x86: add SSE floating-point to Intel64 subarch
This is a naive implementation which does "eager" context switching for floating-point context, which, of course, introduces performance concerns. Other approaches have security concerns, SMP implications, and impact the x86 arch and Zephyr project as a whole. Discussion is needed, so punting with the straightforward solution for now. Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
parent
2e788040d8
commit
a5eea17dda
7 changed files with 67 additions and 3 deletions
|
@ -8,6 +8,8 @@
|
|||
#include <kernel_structs.h>
|
||||
#include <kernel_internal.h>
|
||||
|
||||
extern void x86_sse_init(struct k_thread *); /* in locore.S */
|
||||
|
||||
void z_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
|
||||
size_t stack_size, k_thread_entry_t entry,
|
||||
void *parameter1, void *parameter2, void *parameter3,
|
||||
|
@ -26,4 +28,6 @@ void z_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
|
|||
thread->arch.rsi = (long) parameter1;
|
||||
thread->arch.rdx = (long) parameter2;
|
||||
thread->arch.rcx = (long) parameter3;
|
||||
|
||||
x86_sse_init(thread);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue