summaryrefslogtreecommitdiffstats
path: root/src/lib/syscall_task.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/syscall_task.C')
-rw-r--r--src/lib/syscall_task.C9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/syscall_task.C b/src/lib/syscall_task.C
index bfd522933..d07ea3f19 100644
--- a/src/lib/syscall_task.C
+++ b/src/lib/syscall_task.C
@@ -1,4 +1,5 @@
#include <sys/task.h>
+#include <sys/syscall.h>
#include <kernel/task.H>
using namespace Systemcalls;
@@ -9,9 +10,9 @@ void task_yield()
return;
}
-int task_create(void(*fn)(void*), void* ptr)
+tid_t task_create(void(*fn)(void*), void* ptr)
{
- return (int64_t) _syscall2(TASK_START, (void*)fn, ptr);
+ return (tid_t) _syscall2(TASK_START, (void*)fn, ptr);
}
void task_end()
@@ -20,7 +21,7 @@ void task_end()
return;
}
-uint64_t task_gettid()
+tid_t task_gettid()
{
- return (uint64_t)_syscall0(TASK_GETTID);
+ return (tid_t)_syscall0(TASK_GETTID);
}
OpenPOWER on IntegriCloud