Iros
 
Loading...
Searching...
No Matches
system_call.h
Go to the documentation of this file.
1#pragma once
2
3#define DIUS_SYSTEM_CALL_INSTRUCTION "int $0x80"
4
5#define DIUS_SYSTEM_CALL_ASM_RESULT "=a"
6#define DIUS_SYSTEM_CALL_ASM_ERROR "=d"
7#define DIUS_SYSTEM_CALL_ASM_NUMBER "a"
8
9#define DIUS_SYSTEM_CALL_ASM_ARG1 "rdi"
10#define DIUS_SYSTEM_CALL_ASM_ARG2 "rsi"
11#define DIUS_SYSTEM_CALL_ASM_ARG3 "rdx"
12#define DIUS_SYSTEM_CALL_ASM_ARG4 "r10"
13#define DIUS_SYSTEM_CALL_ASM_ARG5 "r8"
14#define DIUS_SYSTEM_CALL_ASM_ARG6 "r9"
15
16#define DIUS_SYSTEM_CALL_CLOBBER "memory", "cc"