helos1/runtime/calling_convention.h

13 lines
470 B
C
Raw Permalink Normal View History

2021-10-10 14:39:17 +08:00
// x64sysvcall int sysv_x64fastcall(void* addr, int numArgs, long args1, args2, args3, args4)
//
// Calls Microsoft x64 ABI functions under System V AMD64 ABI.
//
// This function can handle ONLY up to FOUR arguments.
// numArgs is in fact unused.
//
// Input: (void* rdi, int rsi, long rdx, rcx, r8, r9)
// Output: int rax
// Clobbers: flags
__attribute__((sysv_abi)) long sysv_x64fastcall(void *addr, int numArgs, long args1, long args2, long args3, long args4);