30#define ALLOC_ADDRESS 2
33#define USED 0x00000000
34#define FREE 0x80000000
55 void *intr_suspend_tbl;
62void * AllocSysMemory(
int mode,
int size,
void *ptr);
64int FreeSysMemory(
void *ptr);
68u32 QueryMaxFreeMemSize();
69u32 QueryTotalFreeMemSize();
71void * QueryBlockTopAddress(
void *address);
72int QueryBlockSize(
void *address);
74typedef int (KprintfHandler_t)(
void *context,
const char *format, va_list ap);
76int Kprintf(
const char *format,...);
77void KprintfSet(KprintfHandler_t *,
void *context);
79#define sysmem_IMPORTS_start DECLARE_IMPORT_TABLE(sysmem, 1, 1)
80#define sysmem_IMPORTS_end END_IMPORT_TABLE
82#define I_GetSysmemInternalData DECLARE_IMPORT(3, GetSysmemInternalData)
83#define I_AllocSysMemory DECLARE_IMPORT(4, AllocSysMemory)
84#define I_FreeSysMemory DECLARE_IMPORT(5, FreeSysMemory)
85#define I_QueryMemSize DECLARE_IMPORT(6, QueryMemSize)
86#define I_QueryMaxFreeMemSize DECLARE_IMPORT(7, QueryMaxFreeMemSize)
87#define I_QueryTotalFreeMemSize DECLARE_IMPORT(8, QueryTotalFreeMemSize)
88#define I_QueryBlockTopAddress DECLARE_IMPORT(9, QueryBlockTopAddress)
89#define I_QueryBlockSize DECLARE_IMPORT(10, QueryBlockSize)
90#define I_Kprintf DECLARE_IMPORT(14, Kprintf)
91#define I_KprintfSet DECLARE_IMPORT(15, KprintfSet)
struct sysmem_internals_ sysmem_internals_t