This commit was generated by cvs2svn to compensate for changes in r52,
[reactos.git] / reactos / ntoskrnl / hal / x86 / usercall.asm
1 ;
2 ;
3
4 %include 'internal/hal/segment.inc'
5
6 bits 32
7 section .text
8 extern __SystemServiceTable
9 global _interrupt_handler2e
10
11 _interrupt_handler2e:
12 push ds
13 push es
14 push esi
15 push edi
16
17 mov bx,KERNEL_DS
18 mov es,bx
19
20 mov esi,edx
21 mov ecx,[es:__SystemServiceTable+eax*8]
22 sub esp,ecx
23 mov edi,esp
24 rep movsb
25
26 mov ds,bx
27
28 mov eax,[__SystemServiceTable+4+eax*8]
29 call eax
30
31 pop edi
32 pop esi
33 pop es
34 pop ds
35 iret