mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
system_malloc OK (#261)
* move system_malloc to boot_O2 * Rename StartHeap into SystemArena * match * fake system_malloc data * fix return types * Rename Alloc to Malloc * Update tools/disasm/files.txt Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com> * fix spec Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
This commit is contained in:
co-authored by
EllipticEllipsis
parent
9eb438860c
commit
49922b4856
+13
-13
@@ -167,14 +167,14 @@ void GfxPrint_PrintChar(GfxPrint* this, u8 c);
|
||||
// void MtxConv_L2F(void);
|
||||
void __assert(const char* file, u32 lineNum);
|
||||
// void func_800862B4(void);
|
||||
void* StartHeap_AllocMin1(u32 size);
|
||||
void StartHeap_FreeNull(void* pvParm1);
|
||||
void* SystemArena_MallocMin1(u32 size);
|
||||
void SystemArena_FreeNull(void* pvParm1);
|
||||
void func_8008633C(u32 param_1, s32 param_2, s32 param_3, UNK_PTR param_4);
|
||||
void func_800863AC(u32 param_1, s32 param_2, s32 param_3, UNK_PTR param_4);
|
||||
// void func_8008641C(void);
|
||||
// void func_800864EC(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5);
|
||||
// void func_80086588(void);
|
||||
void StartHeap_Init(u32 base, u32 size);
|
||||
void SystemArena_Init(u32 base, u32 size);
|
||||
s32 func_80086620(OSMesgQueue* param_1, PadMgr* param_2, OSContStatus* param_3);
|
||||
// void func_80086760(void);
|
||||
// void func_80086794(void);
|
||||
@@ -209,16 +209,16 @@ s32 func_80086D40(f64 param_1);
|
||||
f64 func_80086D6C(f64 param_1);
|
||||
s32 func_80086D8C(f32 param_1);
|
||||
s32 func_80086DAC(f64 param_1);
|
||||
void* StartHeap_Alloc(u32 size);
|
||||
void* StartHeap_AllocR(u32 size);
|
||||
void* StartHeap_Realloc(void* oldPtr, u32 newSize);
|
||||
void StartHeap_Free(void* ptr);
|
||||
void* StartHeap_Calloc(s32 param_1, s32 param_2);
|
||||
void StartHeap_AnalyzeArena(u32* maxFreeBlock, u32* bytesFree, u32* bytesAllocated);
|
||||
// s32 StartHeap_CheckArena(void);
|
||||
void StartHeap_InitArena(u32 base, u32 size);
|
||||
// void StartHeap_Cleanup(void);
|
||||
// u32 StartHeap_IsInitialized(void);
|
||||
void* SystemArena_Malloc(u32 size);
|
||||
void* SystemArena_MallocR(u32 size);
|
||||
void* SystemArena_Realloc(void* oldPtr, u32 newSize);
|
||||
void SystemArena_Free(void* ptr);
|
||||
void* SystemArena_Calloc(u32 elements, u32 size);
|
||||
void SystemArena_AnalyzeArena(u32* maxFreeBlock, u32* bytesFree, u32* bytesAllocated);
|
||||
u32 SystemArena_CheckArena(void);
|
||||
void SystemArena_InitArena(void* start, u32 size);
|
||||
void SystemArena_Cleanup(void);
|
||||
u8 SystemArena_IsInitialized(void);
|
||||
s32 Rand_Next(void);
|
||||
void Rand_Seed(u32 seed);
|
||||
f32 Rand_ZeroOne(void);
|
||||
|
||||
+1
-1
@@ -322,7 +322,7 @@ extern StackEntry sFaultThreadInfo;
|
||||
extern FaultThreadStruct gFaultStruct;
|
||||
extern FaultDrawer sFaultDrawerStruct;
|
||||
// extern UNK_TYPE4 D_8009CD10;
|
||||
extern Arena startHeap;
|
||||
extern Arena gSystemArena;
|
||||
extern u32 sRandFloat;
|
||||
// extern UNK_TYPE4 sArenaLockMsg;
|
||||
extern OSTask tmp_task;
|
||||
|
||||
Reference in New Issue
Block a user