coreinit: Add DisassemblePPCRange.

This commit is contained in:
James Benton 2017-06-02 11:42:24 +01:00
parent 46b3c9c7e0
commit 5a07bf6c1d
2 changed files with 16 additions and 0 deletions

View File

@ -11,6 +11,14 @@
extern "C" {
#endif
typedef void (*DisassemblyPrintFn)(const char *fmt, ...);
typedef uint32_t (*DisassemblyFindSymbolFn)(uint32_t addr, char *symbolNameBuf, uint32_t symbolNameBufSize);
typedef enum DisassemblePPCFlags
{
DISASSEMBLE_PPC_FLAGS_NONE = 0,
} DisassemblePPCFlags;
void
OSConsoleWrite(const char *msg,
@ -31,6 +39,13 @@ void
OSFatal(const char *msg);
void
DisassemblePPCRange(void *start,
void *end,
DisassemblyPrintFn printFn,
DisassemblyFindSymbolFn findSymbolFn,
DisassemblePPCFlags flags);
#ifdef __cplusplus
}
#endif

View File

@ -85,6 +85,7 @@ EXPORT(OSConsoleWrite);
EXPORT(OSReport);
EXPORT(OSPanic);
EXPORT(OSFatal);
EXPORT(DisassemblePPCRange);
// coreinit/dynload.h
EXPORT(OSDynLoad_SetAllocator);