blob: c484e19ab0d5801f02dc65123547b6ed4cd4def5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <Syscall/RessourceCaller.class.h>
#include <Process.iface.h>
class Process : public RessourceCaller {
public:
static Process get() {
u32int id = RessourceCaller::getObjId(PR_IFACE_OBJTYPE);
return Process(id);
}
Process(u32int id) : RessourceCaller(id, PR_IFACE_OBJTYPE) {}
void exit() {
doCall(PR_IFACE_EXIT);
}
void allocPage(u32int pos) {
doCall(PR_IFACE_ALLOCPAGE, pos);
}
};
|