Commit 2dda6a28 authored by Alexandre Julliard's avatar Alexandre Julliard

win32u: Generate syscall entry points from the C code with asm macros.

parent 48a54598
......@@ -6,7 +6,7 @@ IMPORTS = ntdll winecrt0
UNIX_CFLAGS = $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS)
UNIX_LIBS = $(CARBON_LIBS) $(APPKIT_LIBS) $(PTHREAD_LIBS) -lm
EXTRADLLFLAGS = -nodefaultlibs -Wb,--syscall-table,1
EXTRADLLFLAGS = -nodefaultlibs
SOURCES = \
bitblt.c \
......
......@@ -26,11 +26,27 @@
#include "winbase.h"
#include "ntgdi.h"
#include "wine/unixlib.h"
#include "wine/asm.h"
#include "win32syscalls.h"
void *__wine_syscall_dispatcher = NULL;
static unixlib_handle_t win32u_handle;
/*******************************************************************
* syscalls
*/
#ifdef _WIN64
#define SYSCALL_ENTRY(id,name,args) __ASM_SYSCALL_FUNC( id + 0x1000, name )
ALL_SYSCALLS64
#else
#define SYSCALL_ENTRY(id,name,args) __ASM_SYSCALL_FUNC( id + 0x1000, name, args )
DEFINE_SYSCALL_HELPER32()
ALL_SYSCALLS32
#endif
#undef SYSCALL_ENTRY
void __cdecl __wine_spec_unimplemented_stub( const char *module, const char *function )
{
EXCEPTION_RECORD record;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment