From 424dc57424ee17de77d689443f95d2e1bed72f4a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 22 Aug 2020 17:38:40 +0200 Subject: Added random number generator --- libc/inc/sys.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/inc/sys.h') diff --git a/libc/inc/sys.h b/libc/inc/sys.h index 2014da9..bb5dec2 100644 --- a/libc/inc/sys.h +++ b/libc/inc/sys.h @@ -12,6 +12,7 @@ enum sys { SYS_WRITE, SYS_EXEC, SYS_EXIT, + SYS_TIME, SYS_MAP, SYS_UNMAP, SYS_RESOLVE @@ -42,6 +43,7 @@ int sysv(enum sys num, ...); while (1) { \ } \ } +#define time() sys0(SYS_TIME) #define event_map(id, func) sys2(SYS_MAP, (int)id, (int)func) #define event_unmap(id, func) sys2(SYS_UNMAP, (int)id, (int)func) #define event_resolve() sys0(SYS_RESOLVE) // TODO: Find method making event_resolve obsolete -- cgit v1.2.3