set task switched flag to support applications, which require FPU support
This commit is contained in:
parent
47fae3de67
commit
dadc4ce7ed
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue