|
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/memmap.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, DBGC, get_fbms(), hook_comboot_interrupts(), memmap_describe(), memmap_is_usable(), memmap_size(), image::name, PHYS_CODE, image::replacement, rmsetjmp, state, unhook_comboot_interrupts(), and unregister_image().
Referenced by com32_exec().
|
static |
Check image name extension.
| image | COM32 image |
| rc | Return status code |
Definition at line 152 of file com32.c.
References 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 195 of file com32.c.
References buffer, COM32_START_PHYS, image::data, DBGC, image::len, memcpy(), memsz, image::name, 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 220 of file com32.c.
References COM32_BOUNCE_SEG, DBGC, memsz, image::name, prep_segment(), rc, real_to_virt(), seg, and strerror().
Referenced by com32_exec().
|
static |
Probe COM32 image.
| image | COM32 image |
| rc | Return status code |
Definition at line 247 of file com32.c.
References com32_identify(), and rc.
|
static |
Execute COMBOOT image.
| image | COM32 image |
| rc | Return status code |
Definition at line 264 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.
1.8.15