From b667ea0fbd26af222f828199e7b9a7e62ad98081 Mon Sep 17 00:00:00 2001
From: Marvin Borner
Date: Sat, 22 Aug 2020 23:31:47 +0200
Subject: Some window fb and yield implementation

---
 libc/inc/sys.h | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'libc')

diff --git a/libc/inc/sys.h b/libc/inc/sys.h
index dc6aaf1..8bff39b 100644
--- a/libc/inc/sys.h
+++ b/libc/inc/sys.h
@@ -12,6 +12,7 @@ enum sys {
 	SYS_WRITE, // Write to file
 	SYS_EXEC, // Execute path
 	SYS_EXIT, // Exit current process
+	SYS_YIELD, // Switch to next process
 	SYS_TIME, // Get kernel time
 	SYS_MAP, // Map event to function
 	SYS_UNMAP, // Unmap event
@@ -52,6 +53,7 @@ int sysv(enum sys num, ...);
 		while (1) {                                                                        \
 		}                                                                                  \
 	}
+#define yield() (int)sys0(SYS_YIELD)
 #define time() (int)sys0(SYS_TIME)
 
 #define event_map(id, func) sys2(SYS_MAP, (int)(id), (int)(func))
-- 
cgit v1.2.3