iPXE
|
System Deployment Image (SDI) More...
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <realmode.h>
#include <sdi.h>
#include <ipxe/image.h>
#include <ipxe/features.h>
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
FEATURE (FEATURE_IMAGE, "SDI", DHCP_EB_FEATURE_SDI, 1) | |
static int | sdi_parse_header (struct image *image, struct sdi_header *sdi) |
Parse SDI image header. More... | |
static int | sdi_exec (struct image *image) |
Execute SDI image. More... | |
static int | sdi_probe (struct image *image) |
Probe SDI image. More... | |
struct image_type sdi_image_type | __image_type (PROBE_NORMAL) |
SDI image type. More... | |
System Deployment Image (SDI)
Based on the MSDN article "RAM boot using SDI in Windows XP Embedded with Service Pack 1", available at the time of writing from:
http://msdn.microsoft.com/en-us/library/ms838543.aspx
Definition in file sdi.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
FEATURE | ( | FEATURE_IMAGE | , |
"SDI" | , | ||
DHCP_EB_FEATURE_SDI | , | ||
1 | |||
) |
|
static |
Parse SDI image header.
image | SDI file |
sdi | SDI header to fill in |
rc | Return status code |
Definition at line 54 of file sdi.c.
References copy_from_user(), image::data, DBGC, ENOEXEC, image::len, sdi_header::magic, and SDI_MAGIC.
Referenced by sdi_exec(), and sdi_probe().
|
static |
Execute SDI image.
image | SDI file |
rc | Return status code |
Definition at line 80 of file sdi.c.
References __asm__(), __volatile__(), assert(), sdi_header::boot_offset, sdi_header::boot_size, image::data, DBGC, ECANCELED, ENOTTY, image::len, memcpy_user(), rc, REAL_CODE, real_to_user(), SDI_BOOT_OFF, SDI_BOOT_SEG, sdi_parse_header(), SDI_WTF, and user_to_phys().
|
static |
Probe SDI image.
image | SDI file |
rc | Return status code |
Definition at line 124 of file sdi.c.
References rc, and sdi_parse_header().
struct image_type sdi_image_type __image_type | ( | PROBE_NORMAL | ) |
SDI image type.