2008-07-25 11:09:07 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS system libraries
|
|
|
|
* FILE: lib/kernel32/thread/i386/thread.S
|
|
|
|
* PURPOSE: Thread Start Thunks
|
|
|
|
* PROGRAMMER: Alex Ionescu (alex@relsoft.net)
|
|
|
|
*/
|
|
|
|
|
2010-11-27 22:12:15 +00:00
|
|
|
#include <asm.inc>
|
2011-08-20 19:04:55 +00:00
|
|
|
.code64
|
2010-11-27 22:12:15 +00:00
|
|
|
|
2011-08-20 19:04:55 +00:00
|
|
|
EXTERN BaseThreadStartup:PROC
|
|
|
|
EXTERN BaseProcessStartup:PROC
|
2010-11-27 22:12:15 +00:00
|
|
|
|
|
|
|
PUBLIC BaseThreadStartupThunk
|
|
|
|
PUBLIC BaseProcessStartThunk
|
2008-07-25 11:09:07 +00:00
|
|
|
|
[KERNEL32]
Merge r34770, r36475, r36990, r37019, r43852, r43952, r43954, r43979, r43981, r46868 from amd64 branch:
- Multiple ULONG / SIZE_T fixes
- Use UlongToHandle / HandleToUlong to convert between DWORD ProcessId and ClientId.UniqueProcess
- implement amd64 version of _dump_context
- Make IsConsoleHandle 64bit safe
- Update kernel32.pspec with a lot of Win7 (commented out) and some amd64 specific exports, add some more comments and fix sorting
- Implement amd64 version of BaseThreadStartupThunk and BaseProcessStartThunk
- Stub amd64 version of SwitchToFiber
- Implement amd64 version of BasepInitializeContext
svn path=/trunk/; revision=48119
2010-07-19 18:52:18 +00:00
|
|
|
BaseThreadStartupThunk:
|
2011-08-20 19:04:55 +00:00
|
|
|
|
2008-07-25 11:09:07 +00:00
|
|
|
/* Start out fresh */
|
|
|
|
xor rbp, rbp
|
2011-08-20 19:04:55 +00:00
|
|
|
|
2008-07-25 11:09:07 +00:00
|
|
|
push rbx /* lpParameter */
|
|
|
|
push rax /* lpStartAddress */
|
|
|
|
push 0 /* Return RIP */
|
[KERNEL32]
Merge r34770, r36475, r36990, r37019, r43852, r43952, r43954, r43979, r43981, r46868 from amd64 branch:
- Multiple ULONG / SIZE_T fixes
- Use UlongToHandle / HandleToUlong to convert between DWORD ProcessId and ClientId.UniqueProcess
- implement amd64 version of _dump_context
- Make IsConsoleHandle 64bit safe
- Update kernel32.pspec with a lot of Win7 (commented out) and some amd64 specific exports, add some more comments and fix sorting
- Implement amd64 version of BaseThreadStartupThunk and BaseProcessStartThunk
- Stub amd64 version of SwitchToFiber
- Implement amd64 version of BasepInitializeContext
svn path=/trunk/; revision=48119
2010-07-19 18:52:18 +00:00
|
|
|
jmp BaseThreadStartup
|
2008-07-25 11:09:07 +00:00
|
|
|
|
[KERNEL32]
Merge r34770, r36475, r36990, r37019, r43852, r43952, r43954, r43979, r43981, r46868 from amd64 branch:
- Multiple ULONG / SIZE_T fixes
- Use UlongToHandle / HandleToUlong to convert between DWORD ProcessId and ClientId.UniqueProcess
- implement amd64 version of _dump_context
- Make IsConsoleHandle 64bit safe
- Update kernel32.pspec with a lot of Win7 (commented out) and some amd64 specific exports, add some more comments and fix sorting
- Implement amd64 version of BaseThreadStartupThunk and BaseProcessStartThunk
- Stub amd64 version of SwitchToFiber
- Implement amd64 version of BasepInitializeContext
svn path=/trunk/; revision=48119
2010-07-19 18:52:18 +00:00
|
|
|
BaseProcessStartThunk:
|
2008-07-25 11:09:07 +00:00
|
|
|
|
|
|
|
/* Start out fresh */
|
|
|
|
xor rbp, rbp
|
2011-08-20 19:04:55 +00:00
|
|
|
|
2008-07-25 11:09:07 +00:00
|
|
|
push rax /* lpStartAddress */
|
|
|
|
push 0 /* Return RIP */
|
[KERNEL32]
Merge r34770, r36475, r36990, r37019, r43852, r43952, r43954, r43979, r43981, r46868 from amd64 branch:
- Multiple ULONG / SIZE_T fixes
- Use UlongToHandle / HandleToUlong to convert between DWORD ProcessId and ClientId.UniqueProcess
- implement amd64 version of _dump_context
- Make IsConsoleHandle 64bit safe
- Update kernel32.pspec with a lot of Win7 (commented out) and some amd64 specific exports, add some more comments and fix sorting
- Implement amd64 version of BaseThreadStartupThunk and BaseProcessStartThunk
- Stub amd64 version of SwitchToFiber
- Implement amd64 version of BasepInitializeContext
svn path=/trunk/; revision=48119
2010-07-19 18:52:18 +00:00
|
|
|
jmp BaseProcessStartup
|
2008-07-25 11:09:07 +00:00
|
|
|
|
2010-11-27 22:12:15 +00:00
|
|
|
END
|
2008-07-25 11:09:07 +00:00
|
|
|
/* EOF */
|