mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Added IPC skeleton
This commit is contained in:
@@ -2,14 +2,21 @@
|
||||
#define _SYSCALL_H
|
||||
|
||||
#include <kernel.h>
|
||||
#include <ipc.h>
|
||||
#include <isr.h>
|
||||
|
||||
#define SYSCALL_MAX 2
|
||||
#define SYS_EXIT 0
|
||||
#define SYS_TEST 1
|
||||
#define SYSCALL_MAX 16
|
||||
enum {
|
||||
SYS_SEND,
|
||||
SYS_RECV,
|
||||
};
|
||||
|
||||
int syscall_init(void);
|
||||
void syscall_register(size_t idx, void* handler);
|
||||
void syscall_handler(struct isr_int_frame* iframe);
|
||||
|
||||
// Syscall handlers
|
||||
int sys_send(pid_t dst, ipc_msg_t* msg);
|
||||
int sys_recv(pid_t src, ipc_msg_t* msg);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user