ev_q option VCORE_MUST_RUN (XCC)
[akaros.git] / kern / include / ros / procdata.h
index de898b2..80a1ae5 100644 (file)
 #include <ros/event.h>
 
 typedef struct procdata {
+       /*
        syscall_sring_t                 syscallring;
        char                                    pad1[SYSCALLRINGSIZE - sizeof(syscall_sring_t)];
+       */
+       syscall_sring_t                 *syscallring;
        sysevent_sring_t                syseventring;
        char                                    pad2[SYSEVENTRINGSIZE - sizeof(sysevent_sring_t)];
 #ifdef __i386__
@@ -30,9 +33,7 @@ typedef struct procdata {
 
 #define PROCDATA_NUM_PAGES  ((sizeof(procdata_t)-1)/PGSIZE + 1)
 
-// this is how user programs access the procdata page
-#ifndef ROS_KERNEL
-# define __procdata (*(procdata_t*)UDATA)
-#endif
+/* TODO: I dislike having this not be a pointer (for kernel programming) */
+#define __procdata (*(procdata_t*)UDATA)
 
-#endif // !ROS_PROCDATA_H
+#endif /* ROS_PROCDATA_H */