iPXE
pxe_loader.c File Reference

PXE UNDI loader. More...

#include <ipxe/init.h>
#include "pxe.h"
#include "pxe_call.h"

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
PXENV_EXIT_t undi_loader (struct s_UNDI_LOADER *undi_loader)

Detailed Description

PXE UNDI loader.

Definition in file pxe_loader.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ undi_loader()

PXENV_EXIT_t undi_loader ( struct s_UNDI_LOADER * undi_loader)

Definition at line 39 of file pxe_loader.c.

39 {
40
41 /* Perform one-time initialisation (e.g. heap) */
42 initialise();
43
44 DBG ( "[PXENV_UNDI_LOADER to CS %04x DS %04x]",
45 undi_loader->UNDI_CS, undi_loader->UNDI_DS );
46
47 /* Fill in UNDI loader structure */
48 undi_loader->PXEptr.segment = rm_cs;
49 undi_loader->PXEptr.offset = __from_text16 ( &ppxe );
50 undi_loader->PXENVptr.segment = rm_cs;
51 undi_loader->PXENVptr.offset = __from_text16 ( &pxenv );
52
54 return PXENV_EXIT_SUCCESS;
55}
#define DBG(...)
Print a debugging message.
Definition compiler.h:498
#define PXENV_EXIT_SUCCESS
No error occurred.
Definition pxe_types.h:45
#define PXENV_STATUS_SUCCESS
Definition pxe_error.h:19
void initialise(void)
Initialise iPXE.
Definition init.c:53
#define __from_text16(pointer)
Definition libkir.h:23
#define rm_cs
Definition libkir.h:38
#define ppxe
Definition pxe_call.h:28
#define pxenv
Definition pxe_call.h:32
#define undi_loader
Definition undiload.c:53

References __from_text16, DBG, initialise(), ppxe, pxenv, PXENV_EXIT_SUCCESS, PXENV_STATUS_SUCCESS, rm_cs, and undi_loader.