blob: 2d7b6baeb550d4a4771c3db9f3a3321fd3c7f7cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "RessourceCaller.class.h"
RessourceCaller::RessourceCaller(u32int id, u32int type) {
m_id = id;
m_type = 1;
m_type = doCall(0);
if (m_type != type) m_type = 0;
}
u32int RessourceCaller::getObjId(u32int type) {
return syscall(0xFFFFFE00, type);
}
u32int RessourceCaller::doCall(u8int call, u32int a, u32int b, u32int c, u32int d, u32int e) {
if (m_type == 0) return (u32int) - 1; //Type 0 = invalid object
u32int x = ((m_id << 8) | call);
return syscall(x, a, b, c, d, e);
}
|