x64: updated system call signatures to accepts and return values of type intptr_t.

This commit is contained in:
Artem Kharytoniuk
2016-06-25 21:48:48 +03:00
parent d4f7c1b467
commit c6836b54b2
11 changed files with 48 additions and 82 deletions

View File

@@ -305,16 +305,10 @@ SV_GameSystemCalls
The module is making a system call
====================
*/
//rcg010207 - see my comments in VM_DllSyscall(), in qcommon/vm.c ...
#if ((defined __linux__) && (defined __powerpc__))
#define VMA(x) ((void *) args[x])
#else
#define VMA(x) VM_ArgPtr(args[x])
#endif
#define VMF(x) (*(float*)&args[x])
#define VMF(x) ((float *)args)[x]
int SV_GameSystemCalls( int *args ) {
intptr_t SV_GameSystemCalls( intptr_t *args ) {
switch( args[0] ) {
case G_PRINT:
Com_Printf( "%s", VMA(1) );