Sfoglia il codice sorgente

!PXE and PXENV+ structures are in code segment, not data segment.

tags/v0.9.3
Michael Brown 17 anni fa
parent
commit
0324d5ff70
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4
    3
      src/interface/pxe/pxe_loader.c

+ 4
- 3
src/interface/pxe/pxe_loader.c Vedi File

@@ -31,7 +31,8 @@
31 31
  */
32 32
 PXENV_EXIT_t undi_loader ( struct s_UNDI_LOADER *undi_loader ) {
33 33
 
34
-	DBG ( "[PXENV_UNDI_LOADER]" );
34
+	DBG ( "[PXENV_UNDI_LOADER to CS %04x DS %04x]",
35
+	      undi_loader->UNDI_CS, undi_loader->UNDI_DS );
35 36
 
36 37
 	/* Perform one-time initialisation (e.g. heap) */
37 38
 	initialise();
@@ -40,10 +41,10 @@ PXENV_EXIT_t undi_loader ( struct s_UNDI_LOADER *undi_loader ) {
40 41
 	pxe_init_structures();
41 42
 
42 43
 	/* Fill in UNDI loader structure */
43
-	undi_loader->PXEptr.segment = rm_ds;
44
+	undi_loader->PXEptr.segment = rm_cs;
44 45
 	undi_loader->PXEptr.offset =
45 46
 		( ( unsigned ) & __from_text16 ( ppxe ) );
46
-	undi_loader->PXENVptr.segment = rm_ds;
47
+	undi_loader->PXENVptr.segment = rm_cs;
47 48
 	undi_loader->PXENVptr.offset =
48 49
 		( ( unsigned ) & __from_text16 ( pxenv ) );
49 50
 

Loading…
Annulla
Salva