SSBM Decomp
Loading...
Searching...
No Matches
lbmemory.c File Reference
#include "lbmemory.h"
#include <platform.h>
#include <dolphin/ar.h>
#include <baselib/debug.h>
#include <baselib/devcom.h>

Data Structures

struct  MemEntry
struct  LBMgr
struct  Allocator

Macros

#define g_alloc   lbMemory_804318B0
#define PUSH_HANDLE(list, handle)
#define POP_HANDLE(list, handle)

Functions

void lbMemory_80015320 (int, Handle *, int, int)
 STATIC_ASSERT (sizeof(struct MemEntry)==0xC)
 STATIC_ASSERT (sizeof(lbMemory_804318B0)==0x6F0)
static Handlenew_handle (void *arenaLo, void *arenaHi)
HandlelbMemory_80014E24 (void *arenaLo, void *arenaHi)
void lbMemory_80014EEC (Handle *handle)
u32 lbMemory_80014F7C (Handle *h)
HandlelbMemory_80014FC8 (Handle *arg0, u32 size)
void lbMemory_800150F0 (Handle *h, void *arg1)
void fn_80015184 (OSAlarm *alarm, OSContext *context)
u32 lbMemory_8001529C (Handle *h, void *arg1, u32 arg2)
void lbMemory_800154BC (uintptr_t *arenaLo, uintptr_t *arenaHi)
HandlelbMemory_800154D4 (void *arenaLo, void *arenaHi)
void lbMemory_800155A4 (void)
void lbMemory_8001564C (void)

Variables

struct Allocator lbMemory_804318B0
static char lbl_803BA2C0 [0xB] = "lbmemory.c"
static char lbl_803BA2CC [0xE] = "_p(free_heap)"
static char lbl_803BA2DC [0x49]
static char lbl_803BA328 [0xD] = "_p(free_mem)"
static char lbl_803BA338 [0xB] = "memp_kouho"
static char lbl_803BA344 [0x24] = "[LbMem] Error: lbMemFreeToHeap %x.\n"
static char lbl_803BA368 [0x18] = "!p->size\0\0\0\0!cancelflag"
SDATA char lbMemory_804D3788 [7] = "handle"
SDATA char lbMemory_804D3790 [2] = "0"
SDATA char lbMemory_804D3794 [8] = "p->size"

Macro Definition Documentation

◆ g_alloc

#define g_alloc   lbMemory_804318B0

◆ PUSH_HANDLE

#define PUSH_HANDLE ( list,
handle )
Value:
do { \
handle->x0_next = *list; \
*list = handle; \
} while (0)

◆ POP_HANDLE

#define POP_HANDLE ( list,
handle )
Value:
do { \
handle = *list; \
*list = handle->x0_next; \
} while (0)

Function Documentation

◆ lbMemory_80015320()

void lbMemory_80015320 ( int arg0,
Handle * handle,
int arg2,
int cancelflag )

◆ STATIC_ASSERT() [1/2]

STATIC_ASSERT ( sizeof(struct MemEntry) = =0xC)

◆ STATIC_ASSERT() [2/2]

STATIC_ASSERT ( sizeof(lbMemory_804318B0) = =0x6F0)

◆ new_handle()

Handle * new_handle ( void * arenaLo,
void * arenaHi )
inlinestatic

◆ lbMemory_80014E24()

Handle * lbMemory_80014E24 ( void * arenaLo,
void * arenaHi )

◆ lbMemory_80014EEC()

void lbMemory_80014EEC ( Handle * handle)

◆ lbMemory_80014F7C()

u32 lbMemory_80014F7C ( Handle * h)

◆ lbMemory_80014FC8()

Handle * lbMemory_80014FC8 ( Handle * arg0,
u32 size )

◆ lbMemory_800150F0()

void lbMemory_800150F0 ( Handle * h,
void * arg1 )

◆ fn_80015184()

void fn_80015184 ( OSAlarm * alarm,
OSContext * context )

◆ lbMemory_8001529C()

u32 lbMemory_8001529C ( Handle * h,
void * arg1,
u32 arg2 )

◆ lbMemory_800154BC()

void lbMemory_800154BC ( uintptr_t * arenaLo,
uintptr_t * arenaHi )

◆ lbMemory_800154D4()

Handle * lbMemory_800154D4 ( void * arenaLo,
void * arenaHi )

◆ lbMemory_800155A4()

void lbMemory_800155A4 ( void )

◆ lbMemory_8001564C()

void lbMemory_8001564C ( void )

Variable Documentation

◆ lbMemory_804318B0

struct Allocator lbMemory_804318B0

◆ lbl_803BA2C0

char lbl_803BA2C0[0xB] = "lbmemory.c"
static

◆ lbl_803BA2CC

char lbl_803BA2CC[0xE] = "_p(free_heap)"
static

◆ lbl_803BA2DC

char lbl_803BA2DC[0x49]
static
Initial value:
=
"(u32)arenaLo >= (u32)_p(a_arenaLo) && (u32)arenaHi <= "
"(u32)_p(a_arenaHi)"

◆ lbl_803BA328

char lbl_803BA328[0xD] = "_p(free_mem)"
static

◆ lbl_803BA338

char lbl_803BA338[0xB] = "memp_kouho"
static

◆ lbl_803BA344

char lbl_803BA344[0x24] = "[LbMem] Error: lbMemFreeToHeap %x.\n"
static

◆ lbl_803BA368

char lbl_803BA368[0x18] = "!p->size\0\0\0\0!cancelflag"
static

◆ lbMemory_804D3788

SDATA char lbMemory_804D3788[7] = "handle"

◆ lbMemory_804D3790

SDATA char lbMemory_804D3790[2] = "0"

◆ lbMemory_804D3794

SDATA char lbMemory_804D3794[8] = "p->size"