iPXE
|
SYSLINUX COM32 image format. More...
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <assert.h>
#include <realmode.h>
#include <basemem.h>
#include <comboot.h>
#include <ipxe/uaccess.h>
#include <ipxe/image.h>
#include <ipxe/segment.h>
#include <ipxe/init.h>
#include <ipxe/io.h>
#include <ipxe/console.h>
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER) | |
static int | com32_exec_loop (struct image *image) |
Execute COMBOOT image. More... | |
static int | com32_identify (struct image *image) |
Check image name extension. More... | |
static int | com32_load_image (struct image *image) |
Load COM32 image into memory. More... | |
static int | com32_prepare_bounce_buffer (struct image *image) |
Prepare COM32 low memory bounce buffer. More... | |
static int | com32_probe (struct image *image) |
Probe COM32 image. More... | |
static int | com32_exec (struct image *image) |
Execute COMBOOT image. More... | |
struct image_type com32_image_type | __image_type (PROBE_NORMAL) |
SYSLINUX COM32 image type. More... | |
SYSLINUX COM32 image format.
Definition in file com32.c.
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
|
static |
Execute COMBOOT image.
image | COM32 image |
rc | Return status code |
Definition at line 51 of file com32.c.
References __asm__(), __volatile__(), assert(), image::cmdline, COM32_BOUNCE_SEG, com32_cfarcall_wrapper(), com32_farcall_wrapper(), com32_intcall_wrapper(), COM32_START_PHYS, COMBOOT_EXIT, COMBOOT_EXIT_COMMAND, COMBOOT_EXIT_RUN_KERNEL, comboot_force_text_mode(), comboot_return, memory_map::count, DBGC, memory_region::end, get_fbms(), get_memmap(), hook_comboot_interrupts(), image::len, image::name, PHYS_CODE, memory_map::regions, image::replacement, rmsetjmp, memory_region::start, state, unhook_comboot_interrupts(), unregister_image(), and virt_to_phys().
Referenced by com32_exec().
|
static |
Check image name extension.
image | COM32 image |
rc | Return status code |
Definition at line 162 of file com32.c.
References copy_from_user(), image::data, DBGC, ENOEXEC, ext, image::len, magic, memcmp(), image::name, strcasecmp(), and strrchr().
Referenced by com32_probe().
|
static |
Load COM32 image into memory.
image | COM32 image |
rc | Return status code |
Definition at line 207 of file com32.c.
References buffer, COM32_START_PHYS, image::data, DBGC, image::len, memcpy_user(), phys_to_user(), prep_segment(), rc, and strerror().
Referenced by com32_exec().
|
static |
Prepare COM32 low memory bounce buffer.
image | COM32 image |
rc | Return status code |
Definition at line 232 of file com32.c.
References COM32_BOUNCE_SEG, DBGC, prep_segment(), rc, real_to_user(), seg, and strerror().
Referenced by com32_exec().
|
static |
Probe COM32 image.
image | COM32 image |
rc | Return status code |
Definition at line 261 of file com32.c.
References com32_identify(), DBGC, image::name, and rc.
|
static |
Execute COMBOOT image.
image | COM32 image |
rc | Return status code |
Definition at line 280 of file com32.c.
References com32_exec_loop(), com32_load_image(), com32_prepare_bounce_buffer(), console_reset(), and rc.
struct image_type com32_image_type __image_type | ( | PROBE_NORMAL | ) |
SYSLINUX COM32 image type.