mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Some work in sceKernelPartitionTotalFreeMemSize,sceKernelPartitionMaxFreeMemSize
jpcsp ref:
6d28d8799c
We ignore ePartition now
This commit is contained in:
parent
5ef442f682
commit
d19ee07ebf
1 changed files with 22 additions and 6 deletions
|
@ -83,13 +83,29 @@ static int sceKernelDeleteHeap(int heapId) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static u32 sceKernelPartitionTotalFreeMemSize(int partitionId) {
|
||||||
|
ERROR_LOG(SCEKERNEL, "UNIMP sceKernelPartitionTotalFreeMemSize(%d)", partitionId);
|
||||||
|
//Need more work #13021
|
||||||
|
///We ignore partitionId for now
|
||||||
|
return userMemory.GetTotalFreeBytes();
|
||||||
|
}
|
||||||
|
|
||||||
|
static u32 sceKernelPartitionMaxFreeMemSize(int partitionId) {
|
||||||
|
ERROR_LOG(SCEKERNEL, "UNIMP sceKernelPartitionMaxFreeMemSize(%d)", partitionId);
|
||||||
|
//Need more work #13021
|
||||||
|
///We ignore partitionId for now
|
||||||
|
return userMemory.GetLargestFreeBlockSize();
|
||||||
|
}
|
||||||
|
|
||||||
const HLEFunction SysMemForKernel[] = {
|
const HLEFunction SysMemForKernel[] = {
|
||||||
{ 0X636C953B, &WrapI_II<sceKernelAllocHeapMemory>, "sceKernelAllocHeapMemory", 'x', "ii" },
|
{ 0X636C953B, &WrapI_II<sceKernelAllocHeapMemory>, "sceKernelAllocHeapMemory", 'x', "ii", HLE_KERNEL_SYSCALL },
|
||||||
{ 0XC9805775, &WrapI_I<sceKernelDeleteHeap>, "sceKernelDeleteHeap", 'i', "i" },
|
{ 0XC9805775, &WrapI_I<sceKernelDeleteHeap>, "sceKernelDeleteHeap", 'i', "i" , HLE_KERNEL_SYSCALL },
|
||||||
{ 0X1C1FBFE7, &WrapI_IIIC<sceKernelCreateHeap>, "sceKernelCreateHeap", 'i', "iixs" },
|
{ 0X1C1FBFE7, &WrapI_IIIC<sceKernelCreateHeap>, "sceKernelCreateHeap", 'i', "iixs", HLE_KERNEL_SYSCALL },
|
||||||
{ 0X237DBD4F, &WrapI_ICIUU<sceKernelAllocPartitionMemory>, "sceKernelAllocPartitionMemory", 'i', "isixx",HLE_KERNEL_SYSCALL },
|
{ 0X237DBD4F, &WrapI_ICIUU<sceKernelAllocPartitionMemory>, "sceKernelAllocPartitionMemory", 'i', "isixx", HLE_KERNEL_SYSCALL },
|
||||||
{ 0XB6D61D02, &WrapI_I<sceKernelFreePartitionMemory>, "sceKernelFreePartitionMemory", 'i', "i",HLE_KERNEL_SYSCALL },
|
{ 0XB6D61D02, &WrapI_I<sceKernelFreePartitionMemory>, "sceKernelFreePartitionMemory", 'i', "i", HLE_KERNEL_SYSCALL },
|
||||||
{ 0X9D9A5BA1, &WrapU_I<sceKernelGetBlockHeadAddr>, "sceKernelGetBlockHeadAddr", 'x', "i",HLE_KERNEL_SYSCALL },
|
{ 0X9D9A5BA1, &WrapU_I<sceKernelGetBlockHeadAddr>, "sceKernelGetBlockHeadAddr", 'x', "i", HLE_KERNEL_SYSCALL },
|
||||||
|
{ 0x9697CD32, &WrapU_I<sceKernelPartitionTotalFreeMemSize>, "sceKernelPartitionTotalFreeMemSize", 'x', "i",HLE_KERNEL_SYSCALL },
|
||||||
|
{ 0xE6581468, &WrapU_I<sceKernelPartitionMaxFreeMemSize>, "sceKernelPartitionMaxFreeMemSize", 'x', "i",HLE_KERNEL_SYSCALL },
|
||||||
};
|
};
|
||||||
|
|
||||||
void Register_SysMemForKernel() {
|
void Register_SysMemForKernel() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue