2016-02-29 22:28:18 +01:00
|
|
|
#ifndef COMMON_H
|
|
|
|
#define COMMON_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "os_defs.h"
|
|
|
|
|
2016-11-06 23:16:13 +01:00
|
|
|
#define HBL_VERSION "v2.0"
|
2016-11-14 22:09:57 +01:00
|
|
|
#define HBL_VERSION_INT 200
|
2016-02-29 22:28:18 +01:00
|
|
|
|
|
|
|
#define CAFE_OS_SD_PATH "/vol/external01"
|
2016-10-19 17:56:50 +02:00
|
|
|
#define SD_PATH "fs:"
|
2016-02-29 22:28:18 +01:00
|
|
|
#define WIIU_PATH "/wiiu"
|
|
|
|
|
|
|
|
#ifndef MEM_BASE
|
|
|
|
#define MEM_BASE (0x00800000)
|
|
|
|
#endif
|
|
|
|
|
2016-11-14 22:09:57 +01:00
|
|
|
|
2016-02-29 22:28:18 +01:00
|
|
|
#define ELF_DATA_ADDR (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x00))
|
|
|
|
#define ELF_DATA_SIZE (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x04))
|
2016-11-14 22:09:57 +01:00
|
|
|
#define HBL_CHANNEL_OFFSET (0x1300 + 0x08)
|
|
|
|
#define HBL_CHANNEL (*(volatile unsigned int*)(MEM_BASE + HBL_CHANNEL_OFFSET))
|
2016-11-12 15:09:26 +01:00
|
|
|
#define RPX_MAX_SIZE (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x0C))
|
|
|
|
#define RPX_MAX_CODE_SIZE (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x10))
|
2016-02-29 22:28:18 +01:00
|
|
|
#define MAIN_ENTRY_ADDR (*(volatile unsigned int*)(MEM_BASE + 0x1400 + 0x00))
|
2016-11-14 22:09:57 +01:00
|
|
|
#define OS_FIRMWARE_OFFSET (0x1400 + 0x04)
|
|
|
|
#define OS_FIRMWARE (*(volatile unsigned int*)(MEM_BASE + OS_FIRMWARE_OFFSET))
|
2016-02-29 22:28:18 +01:00
|
|
|
|
|
|
|
#define OS_SPECIFICS ((OsSpecifics*)(MEM_BASE + 0x1500))
|
|
|
|
|
2016-11-12 15:09:26 +01:00
|
|
|
#define MEM_AREA_TABLE ((s_mem_area*)(MEM_BASE + 0x1600))
|
2016-11-06 23:16:13 +01:00
|
|
|
#define APP_BASE_MEM ((unsigned char*)(MEM_BASE + 0x2000))
|
2016-11-12 14:04:23 +01:00
|
|
|
|
2016-02-29 22:28:18 +01:00
|
|
|
#ifndef EXIT_SUCCESS
|
|
|
|
#define EXIT_SUCCESS 0
|
|
|
|
#endif
|
|
|
|
#define EXIT_RELAUNCH_ON_LOAD 0xFFFFFFFD
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* COMMON_H */
|
|
|
|
|