[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:
@@ -38,6 +38,8 @@ public:
|
||||
vm_area(size_t size, vm_flags flags = vm_flags::none);
|
||||
virtual ~vm_area();
|
||||
|
||||
static constexpr kobject::type type = kobject::type::vma;
|
||||
|
||||
/// Get the current virtual size of the memory area
|
||||
size_t size() const { return m_size; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user