commit | 52a03d87132d25d417f8852789ea950325ce1201 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Sun Jul 18 15:22:14 2021 -0700 |
committer | swissChili <swisschili@fastmail.com> | Sun Jul 18 15:22:14 2021 -0700 |
tree | 67bda42940860fa219524253f78678ce3eaab7c6 | |
parent | cbd43632a8ad7e8d8d2b9a079bec7ce7d0a59f37 [diff] [blame] |
Add synchornization primitives, `waiting` to task
diff --git a/src/libsys/sys.s b/src/libsys/sys.s new file mode 100644 index 0000000..aa2212e --- /dev/null +++ b/src/libsys/sys.s
@@ -0,0 +1,11 @@ +;;;; Bluejay system call client library implementation. + + ;; System call numbers + %include "sys.inc" + + [bits 32] + [global sys_giveup] +sys_giveup: + mov eax, SYS_GIVEUP + int SYS_INT + ret ; Will return here after the task is re-scheduled