Delete duplicate GCN_mem_alloc file
This commit is contained in:
parent
33d5984dff
commit
77ac12c017
|
|
@ -980,7 +980,7 @@ Runtime.PPCEABI.H/Gecko_ExceptionPPC.cpp:
|
|||
.bss start:0x801A72D0 end:0x801A72E0
|
||||
.sdata start:0x801D39B8 end:0x801D39C8
|
||||
|
||||
Runtime.PPCEABI.H/GCN_mem_alloc.c:
|
||||
Runtime.PPCEABI.H/GCN_Mem_Alloc.c:
|
||||
.text start:0x800E3F5C end:0x800E4014
|
||||
.rodata start:0x8011E5A0 end:0x8011E618
|
||||
|
||||
|
|
|
|||
|
|
@ -980,7 +980,7 @@ Runtime.PPCEABI.H/Gecko_ExceptionPPC.cpp:
|
|||
.bss start:0x801A72D0 end:0x801A72E0
|
||||
.sdata start:0x801D39B8 end:0x801D39C8
|
||||
|
||||
Runtime.PPCEABI.H/GCN_mem_alloc.c:
|
||||
Runtime.PPCEABI.H/GCN_Mem_Alloc.c:
|
||||
.text start:0x800E3F5C end:0x800E4014
|
||||
.rodata start:0x8011E5A0 end:0x8011E618
|
||||
|
||||
|
|
|
|||
|
|
@ -672,7 +672,7 @@ config.libs = [
|
|||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/runtime.c"),
|
||||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/__init_cpp_exceptions.cpp"),
|
||||
Object(NonMatching, "Runtime.PPCEABI.H/Gecko_ExceptionPPC.cpp", extra_cflags=["-Cpp_exceptions on", "-RTTI on"]),
|
||||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/GCN_mem_alloc.c"),
|
||||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/GCN_Mem_Alloc.c"),
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
#include "dolphin/os.h"
|
||||
|
||||
inline static void InitDefaultHeap(void) {
|
||||
void* arenaLo;
|
||||
void* arenaHi;
|
||||
|
||||
OSReport("GCN_Mem_Alloc.c : InitDefaultHeap. No Heap Available\n");
|
||||
OSReport("Metrowerks CW runtime library initializing default heap\n");
|
||||
|
||||
arenaLo = OSGetArenaLo();
|
||||
arenaHi = OSGetArenaHi();
|
||||
|
||||
arenaLo = OSInitAlloc(arenaLo, arenaHi, 1);
|
||||
OSSetArenaLo(arenaLo);
|
||||
|
||||
arenaLo = OSRoundUpPtr(arenaLo, 0x20);
|
||||
arenaHi = OSRoundDownPtr(arenaHi, 0x20);
|
||||
|
||||
OSSetCurrentHeap(OSCreateHeap(arenaLo, arenaHi));
|
||||
OSSetArenaLo(arenaLo = arenaHi);
|
||||
}
|
||||
|
||||
/* 80362914-803629CC 35D254 00B8+00 0/0 1/1 0/0 .text __sys_free */
|
||||
void __sys_free(void* p) {
|
||||
if (__OSCurrHeap == -1) {
|
||||
InitDefaultHeap();
|
||||
}
|
||||
|
||||
OSFreeToHeap(__OSCurrHeap, p);
|
||||
}
|
||||
Loading…
Reference in New Issue