iPXE
|
Executable image segments. More...
#include <ipxe/uaccess.h>
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | prep_segment (userptr_t segment, size_t filesz, size_t memsz) |
Prepare segment for loading. More... | |
Executable image segments.
Definition in file segment.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Prepare segment for loading.
segment | Segment start |
filesz | Size of the "allocated bytes" portion of the segment |
memsz | Size of the segment |
rc | Return status code |
Definition at line 60 of file segment.c.
References memory_map::count, DBG, EINVAL, end, memory_region::end, ERANGE_SEGMENT, get_memmap(), memset_user(), mid, memory_map::regions, segment, start, memory_region::start, and user_to_phys().
Referenced by bzimage_exec(), com32_load_image(), com32_prepare_bounce_buffer(), comboot_prepare_segment(), elf_load_segment(), multiboot_add_modules(), multiboot_load_raw(), nbi_prepare_segment(), and pxe_exec().