mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 08:25:53 +00:00
replaced by usercall.c
svn path=/trunk/; revision=294
This commit is contained in:
parent
75a9d9fc5f
commit
a1c0b9b92a
|
@ -1,74 +0,0 @@
|
|||
;
|
||||
;
|
||||
|
||||
%include 'internal/i386/segment.inc'
|
||||
|
||||
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
|
||||
push es
|
||||
push esi
|
||||
push edi
|
||||
push ebp
|
||||
push ebx
|
||||
|
||||
mov bx,KERNEL_DS
|
||||
mov es,bx
|
||||
|
||||
mov ebp,esp
|
||||
|
||||
mov esi,edx
|
||||
mov ecx,[es:__SystemServiceTable+eax*8]
|
||||
sub esp,ecx
|
||||
mov edi,esp
|
||||
rep movsb
|
||||
|
||||
mov ds,bx
|
||||
|
||||
mov eax,[__SystemServiceTable+4+eax*8]
|
||||
call eax
|
||||
|
||||
mov esp,ebp
|
||||
|
||||
pop ebx
|
||||
pop ebp
|
||||
pop edi
|
||||
pop esi
|
||||
pop es
|
||||
pop ds
|
||||
iret
|
Loading…
Reference in a new issue