blob: 88af9d6ab959f5f8e1240baaa7818614ad49abd5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#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);
}
void freePage(u32int pos) {
doCall(PR_IFACE_FREEPAGE, pos);
}
};
|