mirror of
https://github.com/ipxe/ipxe
synced 2025-12-31 06:49:20 +03:00
[pxe] Make pxe_init_structures() an initialisation function
pxe_init_structures() fills in the fields of the !PXE and PXENV+ structures that aren't known until gPXE starts up. Once gPXE is started, these values will never change. Make pxe_init_structures() an initialisation function so that PXE users don't have to worry about calling it.
This commit is contained in:
@@ -39,9 +39,6 @@ PXENV_EXIT_t undi_loader ( struct s_UNDI_LOADER *undi_loader ) {
|
||||
DBG ( "[PXENV_UNDI_LOADER to CS %04x DS %04x]",
|
||||
undi_loader->UNDI_CS, undi_loader->UNDI_DS );
|
||||
|
||||
/* Set up PXE data structures */
|
||||
pxe_init_structures();
|
||||
|
||||
/* Fill in UNDI loader structure */
|
||||
undi_loader->PXEptr.segment = rm_cs;
|
||||
undi_loader->PXEptr.offset = __from_text16 ( &ppxe );
|
||||
|
||||
Reference in New Issue
Block a user