set task switched flag to support applications, which require FPU support

This commit is contained in:
Stefan Lankes 2012-07-18 20:54:04 +02:00
parent 47fae3de67
commit dadc4ce7ed
2 changed files with 10 additions and 0 deletions

View file

@ -810,6 +810,11 @@ common_switch:
add ebx, KERNEL_STACK_SIZE-16
mov [eax+4], ebx
; set task switched flag
mov eax, cr0
or eax, 8
mov cr0, eax
; call cleanup code
call finish_task_switch

View file

@ -1155,6 +1155,11 @@ common_switch:
add rbx, KERNEL_STACK_SIZE-16
mov [rax+4], rbx
; set task switched flag
mov rax, cr0
or eax, 8
mov cr0, rax
; call cleanup code
call finish_task_switch