summaryrefslogtreecommitdiff
path: root/src/user/include/pland
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2020-09-06 13:44:20 -0400
committerBenji Dial <benji6283@gmail.com>2020-09-06 13:44:20 -0400
commit73bb0e48640b842824a0b45fe4854df8ff7faf7b (patch)
tree077dec8a426db1e835393964da4736e91ff4c69d /src/user/include/pland
parentcbc85f6e897808b29e2f712156e2fa4d073d8277 (diff)
downloadportland-os-73bb0e48640b842824a0b45fe4854df8ff7faf7b.tar.gz
bugfixes, init program, hello world
Diffstat (limited to 'src/user/include/pland')
-rw-r--r--src/user/include/pland/syscall.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/user/include/pland/syscall.h b/src/user/include/pland/syscall.h
index 01f7151..5858d16 100644
--- a/src/user/include/pland/syscall.h
+++ b/src/user/include/pland/syscall.h
@@ -2,6 +2,7 @@
#define PLAND_SYSCALL_H
#include <stdint.h>
+#include <stdbool.h>
typedef uint32_t _file_handle_t;
typedef uint32_t _task_handle_t;
@@ -120,8 +121,8 @@ static inline uint32_t _file_size(_file_handle_t handle) {
return _sc1(_SCN_FILE_SIZE, handle);
}
-static inline void _start_task(_drive_number_t drive_number, char *path) {
- _sc2(_SCN_START_TASK, drive_number, (uint32_t)path);
+static inline bool _start_task(_drive_number_t drive_number, const char *path) {
+ return (bool)_sc2(_SCN_START_TASK, drive_number, (uint32_t)path);
}
static inline void _log_string(const char *sz) {