RetroArch
|
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <inttypes.h>
#include <wiiu/os.h>
#include "hbl.h"
Classes | |
struct | _s_mem_area |
struct | _memory_values_t |
Macros | |
#define | MEM_AREA_TABLE ((s_mem_area*)(MEM_BASE + 0x1600)) |
#define | ELF_DATA_ADDR (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x00)) |
#define | ELF_DATA_SIZE (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x04)) |
#define | RPX_MAX_SIZE (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x0C)) |
#define | RPX_MAX_CODE_SIZE (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x10)) |
#define | APP_BASE_MEM ((unsigned char*)(MEM_BASE + 0x2000)) |
Typedefs | |
typedef struct _s_mem_area | s_mem_area |
typedef struct _memory_values_t | memory_values_t |
Functions | |
void | SC0x25_KernelCopyData (unsigned int addr, unsigned int src, unsigned int len) |
static void | memoryAddArea (int start, int end, int cur_index) |
void * | getApplicationEndAddr (void) |
static void | memoryInitAreaTable (u32 args_size) |
static int | HomebrewCopyMemory (u8 *address, u32 bytes, u32 args_size) |
int | HBL_loadToMemory (const char *filepath, u32 args_size) |
Variables | |
static const memory_values_t | mem_vals_540 [] |
#define APP_BASE_MEM ((unsigned char*)(MEM_BASE + 0x2000)) |
#define ELF_DATA_ADDR (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x00)) |
#define ELF_DATA_SIZE (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x04)) |
#define MEM_AREA_TABLE ((s_mem_area*)(MEM_BASE + 0x1600)) |
#define RPX_MAX_CODE_SIZE (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x10)) |
#define RPX_MAX_SIZE (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x0C)) |
typedef struct _memory_values_t memory_values_t |
typedef struct _s_mem_area s_mem_area |
if we load an ELF file
|
inlinestatic |
void SC0x25_KernelCopyData | ( | unsigned int | addr, |
unsigned int | src, | ||
unsigned int | len | ||
) |
|
static |