coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Data Structures | |
struct | rmod_stage_load |
struct | rmodule |
Macros | |
#define | RMODULE_ENTRY(entry_) |
Enumerations | |
enum | { RMODULE_TYPE_SMM , RMODULE_TYPE_SIPI_VECTOR , RMODULE_TYPE_STAGE , RMODULE_TYPE_VBOOT } |
Functions | |
int | rmodule_parse (void *ptr, struct rmodule *m) |
void * | rmodule_parameters (const struct rmodule *m) |
void * | rmodule_entry (const struct rmodule *m) |
int | rmodule_entry_offset (const struct rmodule *m) |
int | rmodule_memory_size (const struct rmodule *m) |
int | rmodule_load (void *loc, struct rmodule *m) |
int | rmodule_load_alignment (const struct rmodule *m) |
int | rmodule_calc_region (unsigned int region_alignment, size_t rmodule_size, size_t *region_size, int *load_offset) |
int | rmodule_stage_load (struct rmod_stage_load *rsl) |
anonymous enum |
int rmodule_calc_region | ( | unsigned int | region_alignment, |
size_t | rmodule_size, | ||
size_t * | region_size, | ||
int * | load_offset | ||
) |
Definition at line 86 of file rmodule.c.
References rmodule::header, rmodule_header::module_entry_point, NULL, rmodule_is_loaded(), and rmodule_load_addr().
Referenced by rmodule_copy_payload(), rmodule_stage_load(), smm_load_module(), and smm_load_module_aseg().
int rmodule_entry_offset | ( | const struct rmodule * | m | ) |
Definition at line 80 of file rmodule.c.
References rmodule::header, rmodule_header::module_entry_point, and rmodule_header::module_link_start_address.
Referenced by load_sipi_vector(), and smm_stub_place_staggered_entry_points().
Definition at line 171 of file rmodule.c.
References base, rmodule::location, prog_segment_loaded(), rmodule_clear_bss(), rmodule_copy_payload(), rmodule_memory_size(), rmodule_relocate(), and SEG_FINAL.
Referenced by load_sipi_vector(), rmodule_stage_load(), smm_load_module(), smm_load_module_aseg(), and smm_module_setup_stub().
int rmodule_load_alignment | ( | const struct rmodule * | m | ) |
Definition at line 162 of file rmodule.c.
Referenced by load_sipi_vector(), smm_load_module(), and smm_load_module_aseg().
int rmodule_memory_size | ( | const struct rmodule * | m | ) |
Definition at line 63 of file rmodule.c.
References rmodule::header, and rmodule_header::module_program_size.
Referenced by load_sipi_vector(), rmodule_copy_payload(), rmodule_load(), rmodule_stage_load(), smm_create_map(), smm_load_module(), smm_load_module_aseg(), smm_module_setup_stub(), and smm_stub_size().
Definition at line 68 of file rmodule.c.
References rmodule::header, NULL, rmodule_header::parameters_begin, rmodule_header::parameters_end, rmodule_is_loaded(), and rmodule_load_addr().
Referenced by load_sipi_vector(), rmodule_stage_load(), smm_load_module(), smm_load_module_aseg(), and smm_module_setup_stub().
Definition at line 31 of file rmodule.c.
References base, rmodule::header, rmodule::location, rmodule_header::magic, NULL, rmodule::payload, rmodule_header::payload_begin_offset, rmodule_header::payload_end_offset, rmodule::payload_size, rmodule::relocations, rmodule_header::relocations_begin_offset, RMODULE_MAGIC, RMODULE_VERSION_1, and rmodule_header::version.
Referenced by load_sipi_vector(), rmodule_stage_load(), smm_create_map(), smm_load_module(), smm_load_module_aseg(), smm_module_setup_stub(), and smm_stub_size().
int rmodule_stage_load | ( | struct rmod_stage_load * | rsl | ) |
Definition at line 249 of file rmodule.c.
References cbfs_alloc(), rmodule::location, NULL, rmod_stage_load::params, rmod_stage_load::prog, prog_locate_hook(), prog_name(), prog_set_area(), prog_set_entry(), rmodule_cbfs_allocator(), rmodule_entry(), rmodule_load(), rmodule_memory_size(), rmodule_parameters(), and rmodule_parse().
Referenced by agesa_map_stage_file_ramstage(), load_postcar_cbfs(), load_reference_code(), and load_relocatable_ramstage().