aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-19 22:57:53 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-19 22:57:53 +0100
commit13db03fcc4a476c8881ccafe0852e72410c67b3a (patch)
tree2064def0c74cb78cf2a532766b4e1d28e571ab41 /src/common
parentadc5a421917dd6e23a2fc01dc9fb2a9f881c291d (diff)
downloadkogata-13db03fcc4a476c8881ccafe0852e72410c67b3a.tar.gz
kogata-13db03fcc4a476c8881ccafe0852e72410c67b3a.zip
Add kernel worker threads for handling various tasks (eg. interrupts)
Diffstat (limited to 'src/common')
-rw-r--r--src/common/include/fs.h9
-rw-r--r--src/common/include/syscallproto.h1
2 files changed, 6 insertions, 4 deletions
diff --git a/src/common/include/fs.h b/src/common/include/fs.h
index b3a618b..70f0169 100644
--- a/src/common/include/fs.h
+++ b/src/common/include/fs.h
@@ -20,10 +20,11 @@
#define FM_CREATE (0x10)
#define FM_TRUNC (0x20)
#define FM_APPEND (0x40)
-#define FM_IOCTL (0x80)
-#define FM_DCREATE (0x100) // create file in directory
-#define FM_DMOVE (0x200) // move file from directory
-#define FM_DUNLINK (0x400) // delete file from directory
+#define FM_IOCTL (0x100)
+#define FM_BLOCKING (0x200)
+#define FM_DCREATE (0x1000) // create file in directory
+#define FM_DMOVE (0x2000) // move file from directory
+#define FM_DUNLINK (0x4000) // delete file from directory
typedef struct {
int type;
diff --git a/src/common/include/syscallproto.h b/src/common/include/syscallproto.h
index ede8cb1..fd56017 100644
--- a/src/common/include/syscallproto.h
+++ b/src/common/include/syscallproto.h
@@ -6,6 +6,7 @@
#define SC_DBG_PRINT 0 // args: msg, msg_strlen
#define SC_EXIT 1 // args: code
#define SC_YIELD 2 // args: ()
+#define SC_USLEEP 3 // args: usecs
#define SC_MMAP 10 // args: addr, size, mode
#define SC_MMAP_FILE 11 // args: handle, offset, addr, size, mode