aboutsummaryrefslogtreecommitdiff
path: root/libc/inc/sys.h
diff options
context:
space:
mode:
authorMarvin Borner2020-08-16 17:13:32 +0200
committerMarvin Borner2020-08-16 17:13:32 +0200
commit0dd3f5e6f4f7607611ce23510858ab3597b5df9f (patch)
tree19fa08636168489fa097dea675ef38a27d913d4d /libc/inc/sys.h
parent36e36fae364dec02999f58edbe997780d901b674 (diff)
Added events and map syscall
Diffstat (limited to 'libc/inc/sys.h')
-rw-r--r--libc/inc/sys.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/inc/sys.h b/libc/inc/sys.h
index 0914bc4..99f5920 100644
--- a/libc/inc/sys.h
+++ b/libc/inc/sys.h
@@ -4,7 +4,8 @@
#ifndef SYS_H
#define SYS_H
-enum sys { SYS_LOOP, SYS_MALLOC, SYS_FREE, SYS_READ, SYS_WRITE, SYS_EXEC, SYS_EXIT };
+enum sys { SYS_LOOP, SYS_MALLOC, SYS_FREE, SYS_READ, SYS_WRITE, SYS_EXEC, SYS_EXIT, SYS_MAP };
+enum event { EVENT_KEYBOARD, EVENT_MOUSE };
#if defined(userspace)
@@ -30,6 +31,7 @@ int sysv(enum sys num, ...);
while (1) { \
} \
}
+#define map(id, func) sys2(SYS_MAP, (int)id, (int)func)
#endif
#endif