20 #include "pedigree/native/native-protocol.h" 21 #include "pedigree/native/native-syscall.h" 22 #include "pedigree/native/nativeSyscallNumbers.h" 24 int _syscall(
Object *pObject,
size_t nOp)
39 void register_object(
Object *pObject)
41 long result = syscall2(
42 NATIVE_REGISTER_OBJECT, pObject->
guid(),
43 reinterpret_cast<uintptr_t
>(pObject));
48 void unregister_object(
Object *pObject)
50 syscall1(NATIVE_UNREGISTER_OBJECT, reinterpret_cast<uintptr_t>(pObject));
54 native_call(
Object *pObject, uint64_t subid,
void *params,
size_t params_size)
58 NATIVE_CALL, reinterpret_cast<uintptr_t>(pObject), subid,
59 reinterpret_cast<uintptr_t>(params), params_size,
60 reinterpret_cast<uintptr_t>(&state));
virtual uint64_t guid() const =0