WiiUPluginLoaderBackend/source/kernel/kernel_defs.h

37 lines
622 B
C
Raw Normal View History

2019-08-15 10:45:18 +02:00
#ifndef __KERNEL_DEFS_H_
#define __KERNEL_DEFS_H_
2018-09-22 19:52:52 +02:00
2019-08-15 10:45:18 +02:00
#include <stdint.h>
2018-09-22 19:52:52 +02:00
#ifdef __cplusplus
extern "C" {
#endif
#define KERN_SYSCALL_TBL1 0xFFE84C70 //Unknown
#define KERN_SYSCALL_TBL2 0xFFE85070 //Games
#define KERN_SYSCALL_TBL3 0xFFE85470 //Loader
#define KERN_SYSCALL_TBL4 0xFFEAAA60 //Home menu
#define KERN_SYSCALL_TBL5 0xFFEAAE60 //Browser
2019-03-01 19:31:45 +01:00
typedef struct _sr_table_t {
2018-09-22 19:52:52 +02:00
uint32_t value[16];
uint32_t sdr1;
} sr_table_t;
2019-03-01 19:31:45 +01:00
typedef struct _bat_t {
2018-09-22 19:52:52 +02:00
uint32_t h;
uint32_t l;
} bat_t;
2019-03-01 19:31:45 +01:00
typedef struct _bat_table_t {
2018-09-22 19:52:52 +02:00
bat_t bat[8];
} bat_table_t;
#ifdef __cplusplus
}
#endif
#endif // __KERNEL_DEFS_H_