diff options
| author | Michael Brown | 2007-07-04 04:20:18 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-07-04 04:20:18 +0200 |
| commit | 0324d5ff709b0669396c872814004e8f2d86e86c (patch) | |
| tree | 48c987ad943ed678b0e17f3361efe68181fffce2 | |
| parent | Fix typo (diff) | |
| download | ipxe-0324d5ff709b0669396c872814004e8f2d86e86c.tar.gz ipxe-0324d5ff709b0669396c872814004e8f2d86e86c.tar.xz ipxe-0324d5ff709b0669396c872814004e8f2d86e86c.zip | |
!PXE and PXENV+ structures are in code segment, not data segment.
| -rw-r--r-- | src/interface/pxe/pxe_loader.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/interface/pxe/pxe_loader.c b/src/interface/pxe/pxe_loader.c index 1f2f8ca69..708d203a6 100644 --- a/src/interface/pxe/pxe_loader.c +++ b/src/interface/pxe/pxe_loader.c @@ -31,7 +31,8 @@ */ PXENV_EXIT_t undi_loader ( struct s_UNDI_LOADER *undi_loader ) { - DBG ( "[PXENV_UNDI_LOADER]" ); + DBG ( "[PXENV_UNDI_LOADER to CS %04x DS %04x]", + undi_loader->UNDI_CS, undi_loader->UNDI_DS ); /* Perform one-time initialisation (e.g. heap) */ initialise(); @@ -40,10 +41,10 @@ PXENV_EXIT_t undi_loader ( struct s_UNDI_LOADER *undi_loader ) { pxe_init_structures(); /* Fill in UNDI loader structure */ - undi_loader->PXEptr.segment = rm_ds; + undi_loader->PXEptr.segment = rm_cs; undi_loader->PXEptr.offset = ( ( unsigned ) & __from_text16 ( ppxe ) ); - undi_loader->PXENVptr.segment = rm_ds; + undi_loader->PXENVptr.segment = rm_cs; undi_loader->PXENVptr.offset = ( ( unsigned ) & __from_text16 ( pxenv ) ); |
