Alexandre Julliard : hal: Add appropriate stdcall decorations to assembly functions.

Alexandre Julliard julliard at winehq.org
Mon Jun 15 07:59:04 CDT 2009


Module: wine
Branch: master
Commit: 34ac93b78bf8dd937f7123a0599b2c48dc18af8c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=34ac93b78bf8dd937f7123a0599b2c48dc18af8c

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sun Jun 14 15:34:28 2009 +0200

hal: Add appropriate stdcall decorations to assembly functions.

---

 dlls/hal/hal.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
index 82ba80c..ed38e6c 100644
--- a/dlls/hal/hal.c
+++ b/dlls/hal/hal.c
@@ -38,18 +38,18 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
 
 #ifdef __i386__
 #define DEFINE_FASTCALL1_ENTRYPOINT( name ) \
-    __ASM_GLOBAL_FUNC( name, \
+    __ASM_STDCALL_FUNC( name, 4, \
                        "popl %eax\n\t" \
                        "pushl %ecx\n\t" \
                        "pushl %eax\n\t" \
-                       "jmp " __ASM_NAME("__regs_") #name )
+                       "jmp " __ASM_NAME("__regs_") #name __ASM_STDCALL(4))
 #define DEFINE_FASTCALL2_ENTRYPOINT( name ) \
-    __ASM_GLOBAL_FUNC( name, \
+    __ASM_STDCALL_FUNC( name, 8, \
                        "popl %eax\n\t" \
                        "pushl %edx\n\t" \
                        "pushl %ecx\n\t" \
                        "pushl %eax\n\t" \
-                       "jmp " __ASM_NAME("__regs_") #name )
+                       "jmp " __ASM_NAME("__regs_") #name __ASM_STDCALL(8))
 #endif
 
 




More information about the wine-cvs mailing list