Compare commits

...

1 Commits

Author SHA1 Message Date
coah
f8dca58c09 cleanup: rename AOSSThread SO alloc/free callbacks
Rename AOSSThread_813FCC8C/E4 to aossAlloc/aossFree. DOL sha1 unchanged.
2026-10-01 16:56:02 -05:00
2 changed files with 9 additions and 9 deletions

View File

@@ -5126,8 +5126,8 @@ __ct__Q33ipl5scene10AOSSThreadFPQ23EGG4Heap = .text:0x813FCA0C; // type:function
destroy__Q33ipl5scene10AOSSThreadFi = .text:0x813FCAA0; // type:function size:0x84
__dt__Q33ipl5scene10AOSSThreadFv = .text:0x813FCB24; // type:function size:0x70
start__Q33ipl5scene10AOSSThreadFv = .text:0x813FCB94; // type:function size:0xF8
AOSSThread_813FCC8C__Q33ipl5scene10AOSSThreadFv = .text:0x813FCC8C; // type:function size:0x58
AOSSThread_813FCCE4__Q33ipl5scene10AOSSThreadFv = .text:0x813FCCE4; // type:function size:0x50
aossAlloc__Q33ipl5scene10AOSSThreadFv = .text:0x813FCC8C; // type:function size:0x58
aossFree__Q33ipl5scene10AOSSThreadFv = .text:0x813FCCE4; // type:function size:0x50
Run__Q33ipl5scene10AOSSThreadFv = .text:0x813FCD34; // type:function size:0xEC
cancel__Q33ipl5scene10AOSSThreadFv = .text:0x813FCE20; // type:function size:0x50
finish__Q33ipl5scene10AOSSThreadFP13NCDAossConfigPi = .text:0x813FCE70; // type:function size:0x2FC

View File

@@ -78,8 +78,8 @@ namespace ipl {
int finish(NCDAossConfig* config, int* result);
void printInfo();
static void* AOSSThread_813FCC8C(u32 id, s32 size);
static void AOSSThread_813FCCE4(u32 id, void* ptr, s32 align);
static void* aossAlloc(u32 id, s32 size);
static void aossFree(u32 id, void* ptr, s32 align);
private:
s32 mState; // 0x32C
@@ -122,8 +122,8 @@ namespace ipl {
return 0;
}
config.alloc = AOSSThread_813FCC8C;
config.free = AOSSThread_813FCCE4;
config.alloc = aossAlloc;
config.free = aossFree;
BOOL level = OSDisableInterrupts();
@@ -144,7 +144,7 @@ namespace ipl {
return 1;
}
void* AOSSThread::AOSSThread_813FCC8C(u32 id, s32 size) {
void* AOSSThread::aossAlloc(u32 id, s32 size) {
void* buffer;
BOOL level = OSDisableInterrupts();
buffer = MEMAllocFromAllocator(&m_allocator, size);
@@ -152,7 +152,7 @@ namespace ipl {
return buffer;
}
void AOSSThread::AOSSThread_813FCCE4(u32 id, void* ptr, s32 align) {
void AOSSThread::aossFree(u32 id, void* ptr, s32 align) {
BOOL level = OSDisableInterrupts();
MEMFreeToAllocator(&m_allocator, ptr);
OSRestoreInterrupts(level);
@@ -162,7 +162,7 @@ namespace ipl {
mState = 0xF;
AOSS_SetCallback(USBAPThread::callback);
if (AOSSi_InitLocal(AOSSThread_813FCC8C, AOSSThread_813FCCE4) == -1) {
if (AOSSi_InitLocal(aossAlloc, aossFree) == -1) {
return this;
}