iPXE
Functions
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 ( GPL2_OR_LATER_OR_UBDL  )
PXENV_EXIT_t undi_loader ( struct s_UNDI_LOADER undi_loader)

Definition at line 39 of file pxe_loader.c.

References __from_text16, DBG, initialise(), ppxe, pxenv, PXENV_EXIT_SUCCESS, PXENV_STATUS_SUCCESS, s_UNDI_LOADER::PXENVptr, s_UNDI_LOADER::PXEptr, rm_cs, s_UNDI_LOADER::Status, s_UNDI_LOADER::UNDI_CS, and s_UNDI_LOADER::UNDI_DS.

                                                               {

        /* Perform one-time initialisation (e.g. heap) */
        initialise();

        DBG ( "[PXENV_UNDI_LOADER to CS %04x DS %04x]",
              undi_loader->UNDI_CS, undi_loader->UNDI_DS );

        /* Fill in UNDI loader structure */
        undi_loader->PXEptr.segment = rm_cs;
        undi_loader->PXEptr.offset = __from_text16 ( &ppxe );
        undi_loader->PXENVptr.segment = rm_cs;
        undi_loader->PXENVptr.offset = __from_text16 ( &pxenv );

        undi_loader->Status = PXENV_STATUS_SUCCESS;
        return PXENV_EXIT_SUCCESS;
}