gctUINT32 physAddr=0;
gctUINT32 baseAddress = 0;
gctUINT32 physAddr=0;
gctUINT32 baseAddress = 0;
- gckOS_LockPages(Kernel->os,
- node->Virtual.physical,
- node->Virtual.bytes,
- gcvFALSE,
- &node->Virtual.logical,
- &node->Virtual.pageCount);
+ gcmkONERROR(
+ gckOS_LockPages(Kernel->os,
+ node->Virtual.physical,
+ node->Virtual.bytes,
+ gcvFALSE,
+ &node->Virtual.logical,
+ &node->Virtual.pageCount));
/* Convert logical address into a physical address. */
/* Convert logical address into a physical address. */
- gckOS_GetPhysicalAddress(Kernel->os, node->Virtual.logical, &physAddr);
+ gcmkONERROR(
+ gckOS_GetPhysicalAddress(Kernel->os,
+ node->Virtual.logical,
+ &physAddr));
- gckOS_UnlockPages(Kernel->os,
- node->Virtual.physical,
- node->Virtual.bytes,
- node->Virtual.logical);
+ gcmkONERROR(
+ gckOS_UnlockPages(Kernel->os,
+ node->Virtual.physical,
+ node->Virtual.bytes,
+ node->Virtual.logical));
- gckOS_GetBaseAddress(Kernel->os, &baseAddress);
+ gcmkONERROR(gckOS_GetBaseAddress(Kernel->os, &baseAddress));
gcmkASSERT(physAddr >= baseAddress);
gcmkASSERT(physAddr >= baseAddress);
{
gckOS_Print("gpu virtual memory 0x%x cannot be allocated in force contiguous request!\n", physAddr);
{
gckOS_Print("gpu virtual memory 0x%x cannot be allocated in force contiguous request!\n", physAddr);
+ gcmkONERROR(gckVIDMEM_Free(node));