WUMSLoader/source/kernel.h

18 lines
571 B
C
Raw Normal View History

2020-04-28 14:43:07 +02:00
#pragma once
2020-05-17 19:05:51 +02:00
2020-04-28 14:43:07 +02:00
#include <stdint.h>
2022-02-04 21:44:03 +01:00
#define ADDRESS_main_entry_hook 0x0101C56C
2020-04-28 14:43:07 +02:00
2022-02-04 21:44:03 +01:00
#define KERN_SYSCALL_TBL_1 0xFFE84C70 // unknown
#define KERN_SYSCALL_TBL_2 0xFFE85070 // works with games
#define KERN_SYSCALL_TBL_3 0xFFE85470 // works with loader
#define KERN_SYSCALL_TBL_4 0xFFEAAA60 // works with home menu
#define KERN_SYSCALL_TBL_5 0xFFEAAE60 // works with browser (previously KERN_SYSCALL_TBL)
2020-04-28 14:43:07 +02:00
void SetupRelocator();
2020-05-17 19:05:51 +02:00
2020-04-28 14:43:07 +02:00
void KernelWriteU32(uint32_t addr, uint32_t value);
2020-05-17 19:05:51 +02:00
2022-02-04 21:44:03 +01:00
void __attribute__((noinline)) kern_write(void *addr, uint32_t value);