summaryrefslogtreecommitdiff
path: root/src/user/include/pland
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/include/pland')
-rw-r--r--src/user/include/pland/syscall.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/user/include/pland/syscall.h b/src/user/include/pland/syscall.h
index 6870865..fd0b416 100644
--- a/src/user/include/pland/syscall.h
+++ b/src/user/include/pland/syscall.h
@@ -43,7 +43,8 @@ enum _scn {
_SCN_WAIT_ANY_IPC_SENT,
_SCN_FIND_UNREAD_IPC,
_SCN_WAIT_IPC_READ,
- _SCN_IS_TASK_RUNNING
+ _SCN_IS_TASK_RUNNING,
+ _SCN_GET_TIMESTAMP
};
static inline uint32_t _sc0(enum _scn eax) {
@@ -228,4 +229,8 @@ static inline bool _is_task_running(_task_handle_t handle) {
return (bool)_sc1(_SCN_IS_TASK_RUNNING, handle);
}
+static inline uint32_t _get_timestamp() {
+ return _sc0(_SCN_GET_TIMESTAMP);
+}
+
#endif \ No newline at end of file