Bring back the ARSC functionality that was removed earlier.
[akaros.git] / kern / include / ros / ring_syscall.h
1 #ifndef _ROS_RING_SYSCALL_H
2 #define _ROS_RING_SYSCALL_H
3
4 #include <ros/common.h>
5 #include <ros/ring_buffer.h>
6
7 #define NUM_SYSCALL_ARGS 6
8 typedef struct syscall_req {
9         uint32_t num;
10         uint32_t flags;
11         uint32_t args[NUM_SYSCALL_ARGS];
12 } syscall_req_t;
13
14 typedef struct syscall_rsp {
15         int32_t retval;
16 } syscall_rsp_t;
17
18 // Generic Syscall Ring Buffer
19 #define SYSCALLRINGSIZE    PGSIZE
20 //DEFINE_RING_TYPES_WITH_SIZE(syscall, syscall_req_t, syscall_rsp_t,
21 //SYSCALLRINGSIZE);
22 DEFINE_RING_TYPES(syscall, syscall_req_t, syscall_rsp_t);
23
24 #endif