Skip to content

Commit ca9d206

Browse files
committed
Move kernel heap to top of memory
1 parent fe36e31 commit ca9d206

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libogc/lwp_wkspace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ void __lwp_wkspace_init(u32 size)
8484
{
8585
void *heap_addr = NULL;
8686

87-
heap_addr = SYS_AllocArenaMem1Lo(size,PPC_CACHE_ALIGNMENT);
87+
heap_addr = SYS_AllocArenaMem1Hi(size,PPC_CACHE_ALIGNMENT);
8888
#if defined(HW_RVL)
8989
if(!heap_addr)
90-
heap_addr = SYS_AllocArenaMem2Lo(size,PPC_CACHE_ALIGNMENT);
90+
heap_addr = SYS_AllocArenaMem2Hi(size,PPC_CACHE_ALIGNMENT);
9191
#endif
9292
memset(heap_addr,0,size);
9393
__wkspace_heap_size = __lwp_heap_init(&__wkspace_heap,heap_addr,size,PPC_ALIGNMENT);

0 commit comments

Comments
 (0)