2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _DOLPHIN_OSBOOTINFO
|
|
|
|
#define _DOLPHIN_OSBOOTINFO
|
2022-09-16 01:17:42 +00:00
|
|
|
|
2023-10-20 04:15:38 +00:00
|
|
|
#include "dolphin/DVDPriv.h"
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
|
2022-09-16 01:17:42 +00:00
|
|
|
typedef struct OSBootInfo {
|
|
|
|
DVDDiskID DVDDiskID;
|
|
|
|
u32 magic;
|
|
|
|
u32 version;
|
|
|
|
u32 memorySize;
|
|
|
|
u32 consoleType;
|
|
|
|
void* arenaLo;
|
|
|
|
void* arenaHi;
|
|
|
|
void* FSTLocation;
|
|
|
|
u32 FSTMaxLength;
|
|
|
|
} OSBootInfo;
|
|
|
|
|
2022-12-23 00:42:31 +00:00
|
|
|
typedef struct {
|
|
|
|
BOOL valid;
|
|
|
|
u32 restartCode;
|
|
|
|
u32 bootDol;
|
|
|
|
void* regionStart;
|
|
|
|
void* regionEnd;
|
|
|
|
BOOL argsUseDefault;
|
|
|
|
void* argsAddr; // valid only when argsUseDefault = FALSE
|
|
|
|
|
|
|
|
} OSExecParams;
|
|
|
|
|
|
|
|
typedef struct BI2Debug {
|
|
|
|
s32 debugMonSize; // 0x0
|
|
|
|
s32 simMemSize; // 0x4
|
|
|
|
u32 argOffset; // 0x8
|
|
|
|
u32 debugFlag; // 0xC
|
|
|
|
int trackLocation; // 0x10
|
|
|
|
int trackSize; // 0x14
|
|
|
|
u32 countryCode; // 0x18
|
|
|
|
u8 unk[8]; // 0x1C
|
|
|
|
u32 padSpec; // 0x24
|
|
|
|
} BI2Debug;
|
|
|
|
|
2023-10-20 04:15:38 +00:00
|
|
|
// Magic number defines.
|
|
|
|
#define OS_BOOTINFO_MAGIC 0x0D15EA5E
|
|
|
|
#define OS_BOOTINFO_MAGIC_JTAG 0xE5207C22
|
|
|
|
#define OS_DVD_MAGIC_NINTENDO 0xC2339F3D
|
|
|
|
#define OS_THREAD_STACK_MAGIC 0xDEADBABE
|
|
|
|
|
|
|
|
#define OS_BOOTROM_ADDR 0x81300000
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _DOLPHIN_OSBOOTINFO
|