mirror of
https://github.com/reactos/reactos.git
synced 2025-07-06 13:51:22 +00:00
[NTDLL]
- use the edx register to store the function pointer to the syscall trampoline. This is how google Chrome checks if an exported function is a system call or not. See https://chromium.googlesource.com/chromium/src.git/+/master/sandbox/win/src/service_resolver_32.cc and https://bugs.winehq.org/show_bug.cgi?id=21232 for details svn path=/trunk/; revision=66161
This commit is contained in:
parent
667174effd
commit
f8de863698
1 changed files with 109 additions and 109 deletions
|
@ -6,8 +6,8 @@ MACRO(STUBCODE_U, Name, SyscallId, ArgCount)
|
||||||
StackBytes = 4 * ArgCount
|
StackBytes = 4 * ArgCount
|
||||||
FPO 0, 0, 0, 0, 0, FRAME_FPO
|
FPO 0, 0, 0, 0, 0, FRAME_FPO
|
||||||
mov eax, SyscallId
|
mov eax, SyscallId
|
||||||
mov ecx, KUSER_SHARED_SYSCALL
|
mov edx, KUSER_SHARED_SYSCALL
|
||||||
call dword ptr [ecx]
|
call dword ptr [edx]
|
||||||
ret StackBytes
|
ret StackBytes
|
||||||
ENDM
|
ENDM
|
||||||
MACRO(STUBCODE_K, Name, SyscallId, ArgCount)
|
MACRO(STUBCODE_K, Name, SyscallId, ArgCount)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue