57,7 → 57,9 |
void* STDCALL AllocKernelSpace(size_t size)__asm__("AllocKernelSpace"); |
void* STDCALL KernelAlloc(size_t size)__asm__("KernelAlloc"); |
void* STDCALL UserAlloc(size_t size)__asm__("UserAlloc"); |
int STDCALL UserFree(void *mem)__asm__("UserFree"); |
|
|
int KernelFree(void *); |
|
void* STDCALL CreateRingBuffer(size_t size, u32 map)__asm__("CreateRingBuffer"); |
90,6 → 92,12 |
:"a" (page), "b"(mem),"c"(size>>12) |
:"edx" |
); |
asm volatile ( |
"" |
: |
: |
:"eax","ebx","ecx" |
); |
|
|
} |
100,8 → 108,15 |
"call *__imp__UnmapPages" |
: |
:"a" (mem), "c"(size>>12) |
:"eax","ecx", "edx" |
:"edx" |
); |
asm volatile ( |
"" |
: |
: |
:"eax","ecx" |
); |
|
} |
/////////////////////////////////////////////////////////////////////////////// |
|
204,3 → 219,4 |
int _stdcall srv_2d(ioctl_t *io); |
|
|
|