Initial work on homebrew return to loader

This commit is contained in:
Gericom
2026-01-04 15:39:47 +01:00
parent f1e5f0cddc
commit 5c8e98a03f
13 changed files with 387 additions and 5 deletions

13
common/HomebrewBootstub.h Normal file
View File

@@ -0,0 +1,13 @@
#pragma once
#define HOMEBREW_BOOTSTUB_BOOTSIG 0x62757473746F6F62ULL
struct homebrew_bootstub_t
{
u64 bootSig;
void* arm9Reboot;
void* arm7Reboot;
u32 bootSize;
};
#define HOMEBREW_BOOTSTUB ((homebrew_bootstub_t*)0x02FF4000)

View File

@@ -12,3 +12,4 @@
#define IPC_COMMAND_ARM9_DISPLAY_ERROR 0xB
#define IPC_COMMAND_ARM9_SWITCH_TO_DS_MODE 0xD
#define IPC_COMMAND_ARM9_BOOT 0xF
#define IPC_COMMAND_ARM9_APPLY_HOMEBREW_PATCHES 0x10