fixing sparc-specific compilation issues.
[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         uint32_t retval;
16                 uint32_t syserr;
17 } syscall_rsp_t;
18
19 // Generic Syscall Ring Buffer
20 #define SYSCALLRINGSIZE    PGSIZE
21 //DEFINE_RING_TYPES_WITH_SIZE(syscall, syscall_req_t, syscall_rsp_t,
22 //SYSCALLRINGSIZE);
23 DEFINE_RING_TYPES(syscall, syscall_req_t, syscall_rsp_t);
24
25 #endif