Improved device tags and sample usage
[akaros.git] / kern / include / ros / syscall.h
index cfacf10..0f6f52f 100644 (file)
@@ -7,12 +7,14 @@
 #include <ros/event.h>
 #include <ros/atomic.h>
 
-/* Flags for an individual syscall.
- * Careful, sparc can't handle flags in byte 3. */
+/* Flags for an individual syscall. */
 #define SC_DONE                                        0x0001          /* SC is done */
 #define SC_PROGRESS                            0x0002          /* SC made progress */
 #define SC_UEVENT                              0x0004          /* user has an ev_q */
 #define SC_K_LOCK                              0x0008          /* kernel locked sysc */
+#define SC_ABORT                               0x0010          /* syscall abort attempted */
+
+#define MAX_ERRSTR_LEN                 128
 
 struct syscall {
        unsigned int                            num;
@@ -27,6 +29,7 @@ struct syscall {
        long                                            arg3;
        long                                            arg4;
        long                                            arg5;
+       char                                            errstr[MAX_ERRSTR_LEN];
 };
 
 #ifndef ROS_KERNEL