mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
[kernel] Add syscall helpers
Added the syscalls/helpers.h file to templatize common kobject syscall operations. Also moved most syscall implementations to using process::current() and thread::current() instead of asking the scheduler.
This commit is contained in:
@@ -50,6 +50,8 @@ public:
|
||||
/// Destructor
|
||||
virtual ~thread();
|
||||
|
||||
static constexpr kobject::type type = kobject::type::thread;
|
||||
|
||||
/// Get the currently executing thread.
|
||||
static thread & current();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user