[KERNEL32]
[reactos.git] / dll / win32 / kernel32 / thread / i386 / thread.S
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/kernel32/thread/i386/thread.S
5 * PURPOSE: Thread Start Thunks
6 * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
7 */
8
9 #include <asm.inc>
10
11 .code
12
13 EXTERN _BaseThreadStartup@8:PROC
14 EXTERN _BaseProcessStartup@4:PROC
15
16 PUBLIC _BaseThreadStartupThunk@0
17 PUBLIC _BaseProcessStartThunk@0
18
19 _BaseThreadStartupThunk@0:
20
21 /* Start out fresh */
22 xor ebp, ebp
23
24 push ebx /* lpParameter */
25 push eax /* lpStartAddress */
26 push 0 /* Return EIP */
27 jmp _BaseThreadStartup@8
28
29 _BaseProcessStartThunk@0:
30
31 /* Start out fresh */
32 xor ebp, ebp
33
34 push eax /* lpStartAddress */
35 push 0 /* Return EIP */
36 jmp _BaseProcessStartup@4
37
38 END
39 /* EOF */