[arch][x86][fpu]Change naming convention for FPU flag

To align with lk/arm flag naming convention, FPU flag
ENABLE_FPU is changed to X86_WITH_FPU

Signed-off-by: Zhu, Bing <bing.zhu@intel.com>
This commit is contained in:
Zhu, Bing
2015-11-09 22:05:41 +08:00
parent 9c69b36411
commit b6647f5bef
10 changed files with 13 additions and 16 deletions

4
arch/x86/thread.c Normal file → Executable file
View File

@@ -88,7 +88,7 @@ void arch_thread_initialize(thread_t *t)
// set the stack pointer
t->arch.esp = (vaddr_t)frame;
#ifdef ENABLE_FPU
#ifdef X86_WITH_FPU
memset(t->arch.fpu_buffer, 0, sizeof(t->arch.fpu_buffer));
t->arch.fpu_states = (vaddr_t *)ROUNDUP(((vaddr_t)t->arch.fpu_buffer), 16);
#endif
@@ -106,7 +106,7 @@ void arch_context_switch(thread_t *oldthread, thread_t *newthread)
{
//dprintf(DEBUG, "arch_context_switch: old %p (%s), new %p (%s)\n", oldthread, oldthread->name, newthread, newthread->name);
#ifdef ENABLE_FPU
#ifdef X86_WITH_FPU
fpu_context_switch(oldthread, newthread);
#endif