Fixed the smp build.

svn path=/trunk/; revision=14768
This commit is contained in:
Hartmut Birr 2005-04-23 12:44:42 +00:00
parent d00288c263
commit 8235965b9e

View file

@ -134,18 +134,18 @@ SaveTrapFrameForKDB_Return:
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
/* Save FPU state if the thread has used it. */ /* Save FPU state if the thread has used it. */
mov [ebx+KPCR_NPX_THREAD], 0 mov dword ptr [ebx+KPCR_NPX_THREAD], 0
test byte ptr [edi+KTHREAD_NPX_STATE], NPX_STATE_DIRTY test byte ptr [edi+KTHREAD_NPX_STATE], NPX_STATE_DIRTY
jz 3f jz 3f
mov eax, [edi+KTHREAD_INITIAL_STACK] mov eax, [edi+KTHREAD_INITIAL_STACK]
cmp _FxsrSupport, 0 cmp dword ptr _FxsrSupport, 0
je 1f je 1f
fxsave [eax-SIZEOF_FX_SAVE_AREA] fxsave [eax-SIZEOF_FX_SAVE_AREA]
jmp 2f jmp 2f
1: 1:
fnsave [eax-SIZEOF_FX_SAVE_AREA] fnsave [eax-SIZEOF_FX_SAVE_AREA]
2: 2:
mov byte ptr [edi+KTHREAD_INITIAL_STACK], NPX_STATE_VALID mov byte ptr [edi+KTHREAD_NPX_STATE], NPX_STATE_VALID
3: 3:
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */