2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _DOLPHIN__START
|
|
|
|
#define _DOLPHIN__START
|
|
|
|
|
2022-09-13 04:26:54 +00:00
|
|
|
#include "dolphin/db.h"
|
2022-04-10 00:17:06 +00:00
|
|
|
#include "types.h"
|
2022-03-23 21:22:48 +00:00
|
|
|
|
2022-04-10 00:17:06 +00:00
|
|
|
#define PAD3_BUTTON_ADDR 0x800030E4
|
|
|
|
#define OS_RESET_RESTART 0
|
|
|
|
#define EXCEPTIONMASK_ADDR 0x80000044
|
|
|
|
#define BOOTINFO2_ADDR 0x800000F4
|
2022-03-23 21:22:48 +00:00
|
|
|
#define OS_BI2_DEBUGFLAG_OFFSET 0xC
|
2022-04-10 00:17:06 +00:00
|
|
|
#define ARENAHI_ADDR 0x80000034
|
|
|
|
#define DEBUGFLAG_ADDR 0x800030E8
|
|
|
|
#define DVD_DEVICECODE_ADDR 0x800030E6
|
2022-03-23 21:22:48 +00:00
|
|
|
|
2022-04-10 00:17:06 +00:00
|
|
|
#define MSR_FP 0x2000
|
2022-03-23 21:22:48 +00:00
|
|
|
|
|
|
|
extern void InitMetroTRK();
|
|
|
|
|
|
|
|
u16 Pad3Button : PAD3_BUTTON_ADDR;
|
|
|
|
static u8 Debug_BBA = 0;
|
|
|
|
|
2022-04-10 00:17:06 +00:00
|
|
|
extern void memset(void*, int, int);
|
2022-03-23 21:22:48 +00:00
|
|
|
extern int main(int argc, char* argv[]);
|
|
|
|
extern void exit(int);
|
|
|
|
extern void __init_user(void);
|
|
|
|
extern void OSInit(void);
|
|
|
|
extern void DBInit(void);
|
|
|
|
extern void OSResetSystem(BOOL reset, u32 resetCode, BOOL forceMenu);
|
2022-04-10 00:17:06 +00:00
|
|
|
extern void __OSCacheInit(void);
|
|
|
|
extern void __OSPSInit(void);
|
2022-03-23 21:22:48 +00:00
|
|
|
|
|
|
|
__declspec(section ".init") extern void __check_pad3(void);
|
|
|
|
__declspec(section ".init") extern void __start(void);
|
|
|
|
__declspec(section ".init") extern void __init_registers(void);
|
|
|
|
__declspec(section ".init") extern void __init_data(void);
|
|
|
|
__declspec(section ".init") extern void __init_hardware(void);
|
2022-04-10 00:17:06 +00:00
|
|
|
__declspec(section ".init") extern void __flush_cache(void* address, unsigned int size);
|
2022-03-23 21:22:48 +00:00
|
|
|
|
|
|
|
__declspec(section ".init") extern char _stack_addr[];
|
|
|
|
__declspec(section ".init") extern char _SDA_BASE_[];
|
|
|
|
__declspec(section ".init") extern char _SDA2_BASE_[];
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _DOLPHIN__START
|