[kernel] Add endpoint object and related syscalls

The endpoint object adds synchronous IPC. Also added the wait-type of
'object' to threads.
This commit is contained in:
2020-09-07 01:09:56 -07:00
parent 53d260cc6e
commit 8534d8d3c5
13 changed files with 368 additions and 49 deletions

View File

@@ -18,6 +18,11 @@
#define j6_signal_channel_can_send (1ull << 17)
#define j6_signal_channel_can_recv (1ull << 18)
// Endpoint signals
#define j6_signal_endpoint_closed (1ull << 16)
#define j6_signal_endpoint_can_send (1ull << 17)
#define j6_signal_endpoint_can_recv (1ull << 18)
// Signals 48-63 are user-defined signals
#define j6_signal_user0 (1ull << 48)
#define j6_signal_user1 (1ull << 49)