matos/core/syscall.h

10 lines
165 B
C
Raw Normal View History

2021-11-02 21:57:57 +01:00
#pragma once
#include "cpu_context.h"
#define SYSCALL_ID_EXIT 1
#define SYSCALL_ID_WRITE 2
int syscallExecute(int syscallId, const struct cpu_state *user_ctx);