13 #define PK_ADJ_LEVEL BIOS_NEVER
117 "filesize: 0x%x memsize: 0x%x\n",
131 size_t num_relocations;
143 num_relocations, (
unsigned long)adjustment);
145 while (num_relocations > 0) {
151 adjust_loc, (
unsigned long) *adjust_loc,
152 (
unsigned long) (*adjust_loc + adjustment));
153 *adjust_loc += adjustment;
243 if (stage_region ==
NULL)
void * memcpy(void *dest, const void *src, size_t n)
void * memset(void *dstpp, int c, size_t len)
#define assert(statement)
static void * cbfs_alloc(const char *name, cbfs_allocator_t allocator, void *arg, size_t *size_out)
const void * cbfs_find_attr(const union cbfs_mdata *mdata, uint32_t attr_tag, size_t size_check)
@ CBFS_FILE_ATTR_TAG_STAGEHEADER
#define DYN_CBMEM_ALIGN_SIZE
void * cbmem_add(u32 id, u64 size)
#define printk(level,...)
static uint32_t be32toh(uint32_t big_endian_32bits)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
void prog_segment_loaded(uintptr_t start, size_t size, int flags)
static void prog_set_entry(struct prog *prog, void *e, void *arg)
static const char * prog_name(const struct prog *prog)
int prog_locate_hook(struct prog *prog)
static void prog_set_area(struct prog *prog, void *start, size_t size)
#define RMODULE_VERSION_1
static size_t rmodule_number_relocations(const struct rmodule *module)
int rmodule_memory_size(const struct rmodule *module)
void * rmodule_entry(const struct rmodule *module)
static void rmodule_clear_bss(struct rmodule *module)
static int rmodule_is_loaded(const struct rmodule *module)
void * rmodule_parameters(const struct rmodule *module)
static void rmodule_copy_payload(const struct rmodule *module)
int rmodule_parse(void *ptr, struct rmodule *module)
int rmodule_load(void *base, struct rmodule *module)
const size_t region_alignment
int rmodule_load_alignment(const struct rmodule *module)
int rmodule_stage_load(struct rmod_stage_load *rsl)
static void * rmodule_load_addr(const struct rmodule *module, uintptr_t blob_addr)
int rmodule_entry_offset(const struct rmodule *module)
static void * rmodule_cbfs_allocator(void *rsl_arg, size_t unused, const union cbfs_mdata *mdata)
static int rmodule_relocate(const struct rmodule *module)
struct rmodule_header * header