diff options
author | Benji Dial <benji6283@gmail.com> | 2021-06-21 17:47:13 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-06-21 17:47:13 -0400 |
commit | f57e2eabe0a10c9732c83532e01654a499fb8dcf (patch) | |
tree | cbf91a23fcdd65e0ea7ed55b0940ca7042d59bef /src/user/include/pland | |
parent | 83835306d57461205a7bcfef9f4c3e06bc504006 (diff) | |
download | portland-os-f57e2eabe0a10c9732c83532e01654a499fb8dcf.tar.gz |
many, many changes; settings is broken
Diffstat (limited to 'src/user/include/pland')
-rw-r--r-- | src/user/include/pland/syscall.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/user/include/pland/syscall.h b/src/user/include/pland/syscall.h index 1e040f4..566e7b8 100644 --- a/src/user/include/pland/syscall.h +++ b/src/user/include/pland/syscall.h @@ -127,8 +127,8 @@ static inline void _exit_task() { __builtin_unreachable(); } -static inline _file_handle_t _open_file(_drive_number_t drive_number, const char *path) { - return (_file_handle_t)_sc2(_SCN_OPEN_FILE, drive_number, (uint32_t)path); +static inline _file_handle_t _open_file(const char *path) { + return (_file_handle_t)_sc1(_SCN_OPEN_FILE, (uint32_t)path); } static inline void _close_file(_file_handle_t handle) { @@ -143,8 +143,8 @@ static inline uint32_t _file_size(_file_handle_t handle) { return _sc1(_SCN_FILE_SIZE, handle); } -static inline _task_handle_t _start_task(_drive_number_t drive_number, const char *path, const char *pass, _task_handle_t stdio_task) { - return (_task_handle_t)_sc4(_SCN_START_TASK, drive_number, (uint32_t)path, (uint32_t)pass, (uint32_t)stdio_task); +static inline _task_handle_t _start_task(const char *path, const char *pass, _task_handle_t stdio_task) { + return (_task_handle_t)_sc3(_SCN_START_TASK, (uint32_t)path, (uint32_t)pass, (uint32_t)stdio_task); } static inline uint32_t _ipc_send(_task_handle_t handle, uint32_t count, const void *buffer) { @@ -183,12 +183,12 @@ static inline void _wait_for_task(_task_handle_t handle) { _sc1(_SCN_WAIT_FOR_TASK, handle); } -static inline uint32_t _enumerate_dir(_drive_number_t drive_number, const char *path, _dir_info_entry_t *buffer, uint32_t max_count) { - return _sc4(_SCN_ENUMERATE_DIR, drive_number, (uint32_t)path, (uint32_t)buffer, max_count); +static inline uint32_t _enumerate_dir(const char *path, _dir_info_entry_t *buffer, uint32_t max_count) { + return _sc3(_SCN_ENUMERATE_DIR, (uint32_t)path, (uint32_t)buffer, max_count); } -static inline uint32_t _count_of_dir(uint8_t drive_number, const char *path) { - return _sc2(_SCN_COUNT_OF_DIR, drive_number, (uint32_t)path); +static inline uint32_t _count_of_dir(const char *path) { + return _sc1(_SCN_COUNT_OF_DIR, (uint32_t)path); } static inline _window_handle_t _new_window(uint16_t width, uint16_t height, _pixel_t *pixel_buffer) { |