mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
Fixed race in task switching code
svn path=/trunk/; revision=133
This commit is contained in:
parent
1628f7a89e
commit
3ecc11334b
1 changed files with 31 additions and 0 deletions
|
@ -7,6 +7,37 @@ bits 32
|
|||
section .text
|
||||
extern __SystemServiceTable
|
||||
global _interrupt_handler2e
|
||||
global _PsBeginThreadWithContextInternal
|
||||
extern _KeLowerIrql
|
||||
|
||||
_PsBeginThreadWithContextInternal:
|
||||
push dword 0
|
||||
call _KeLowerIrql
|
||||
pop eax
|
||||
|
||||
pop eax ; Context flags
|
||||
|
||||
pop eax ; Dr0
|
||||
pop eax ; Dr1
|
||||
pop eax ; Dr2
|
||||
pop eax ; Dr3
|
||||
pop eax ; Dr6
|
||||
pop eax ; Dr7
|
||||
|
||||
add esp,112 ; Floating point save
|
||||
|
||||
pop gs
|
||||
pop fs
|
||||
pop es
|
||||
pop ds
|
||||
pop edi
|
||||
pop esi
|
||||
pop ebx
|
||||
pop edx
|
||||
pop ecx
|
||||
pop eax
|
||||
pop ebp
|
||||
iret
|
||||
|
||||
_interrupt_handler2e:
|
||||
push ds
|
||||
|
|
Loading…
Reference in a new issue