[pxe] Fill in UNDIROMID pointer in !PXE structure
[people/mcb30/gpxe.git] / src / arch / i386 / interface / pxe / pxe_entry.S
index 204894e..c55e581 100644 (file)
@@ -35,7 +35,7 @@ ppxe:
        .byte 0                         /* StructCksum */
        .byte 0                         /* StructRev */
        .byte 0                         /* reserved_1 */
-       .word 0, 0                      /* UNDIROMID */
+       .word undiheader, 0             /* UNDIROMID */
        .word 0, 0                      /* BaseROMID */
        .word pxe_entry_sp, 0           /* EntryPointSP */
        .word pxe_entry_esp, 0          /* EntryPointESP */
@@ -55,6 +55,11 @@ pxe_segments:
        .equ    pxe_length, . - ppxe
        .size   ppxe, . - ppxe
 
+       /* Define undiheader=0 as a weak symbol for non-ROM builds */
+       .section ".weak"
+       .weak   undiheader
+undiheader:
+
 /****************************************************************************
  * PXENV+ structure
  ****************************************************************************