mirror of
https://github.com/wiiu-env/haxchi.git
synced 2024-11-16 13:19:16 +01:00
38 lines
956 B
C
38 lines
956 B
C
|
#ifndef COMMON_H
|
||
|
#define COMMON_H
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#include "os_defs.h"
|
||
|
|
||
|
#define HBL_VERSION "v1.3"
|
||
|
|
||
|
#define CAFE_OS_SD_PATH "/vol/external01"
|
||
|
#define SD_PATH "sd:"
|
||
|
#define WIIU_PATH "/wiiu"
|
||
|
|
||
|
#ifndef MEM_BASE
|
||
|
#define MEM_BASE (0x00800000)
|
||
|
#endif
|
||
|
|
||
|
#define ELF_DATA_ADDR (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x00))
|
||
|
#define ELF_DATA_SIZE (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x04))
|
||
|
#define MAIN_ENTRY_ADDR (*(volatile unsigned int*)(MEM_BASE + 0x1400 + 0x00))
|
||
|
#define OS_FIRMWARE (*(volatile unsigned int*)(MEM_BASE + 0x1400 + 0x04))
|
||
|
|
||
|
#define OS_SPECIFICS ((OsSpecifics*)(MEM_BASE + 0x1500))
|
||
|
|
||
|
#ifndef EXIT_SUCCESS
|
||
|
#define EXIT_SUCCESS 0
|
||
|
#endif
|
||
|
#define EXIT_RELAUNCH_ON_LOAD 0xFFFFFFFD
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* COMMON_H */
|
||
|
|