This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/loader/source/main.c

11 lines
319 B
C
Raw Normal View History

2016-05-03 03:05:11 +02:00
#include "memory.h"
void main(void)
{
2016-05-03 03:05:11 +02:00
void *payloadAddress = (void *)0x23F00000;
memcpy(payloadAddress, (void*)0x24F00000, *(u32 *)0x24FFFF04);
cleanInvalidateDCacheAndDMB(); //Ensure that all memory transfers have completed and that the data cache has been flushed
2016-05-03 03:05:11 +02:00
((void (*)())payloadAddress)();
}