kern: mmap: make the lowest mmap address MiB; mmap ld.so at MiB
[akaros.git] / kern / include / ros / sysevent.h
1 /* Copyright (c) 2009 The Regents of the University of California. 
2  * See the COPYRIGHT files at the top of this source tree for full 
3  * license information.
4  * 
5  * Kevin Klues <klueska@cs.berkeley.edu>    
6  */
7
8 #ifndef ROS_SYSEVENT_H
9 #define ROS_SYSEVENT_H
10
11 #include <ros/ring_buffer.h>
12 #include <ros/arch/mmu.h>
13
14
15 typedef enum {
16         SYS_begofevents, //Should always be first
17         
18         SYS_shared_page_alloc_event, 
19         SYS_shared_page_free_event, 
20
21         SYS_endofevents //Should always be last
22 } sysevent_type_t;
23
24 #define NUM_SYSEVENT_ARGS 6
25 typedef struct sysevent {
26         sysevent_type_t type;
27         uint32_t args[NUM_SYSEVENT_ARGS];
28 } sysevent_t;
29
30 typedef struct sysevent_rsp {
31         int rsp;
32 } sysevent_rsp_t;
33
34 // Generic Sysevent Ring Buffer
35 #define SYSEVENTRINGSIZE    PGSIZE
36 DEFINE_RING_TYPES(sysevent, sysevent_t, sysevent_rsp_t);
37
38 #endif //ROS_SYSEVENT_H
39