Skip to contentSkip to conversation

fix trying to boot from next device

PATCH New Akio Takebe 1 participant 1 message May 26, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix trying to boot from next device

Hi,

If boot="ndc", rombios cannot try to boot next device. Because rombios jump to the boot vector without pushing return address, gPXE code and so on cannot return if it fail to boot.

This patch fixes this issue.

Best Regards,

Akio Takebe

---

tools/firmware/rombios/rombios.c Tue May 26 22:50:33 2009 +0900 renamed from tools/firmware/rombios/rombios.c Tue May 19 23:44:28 2009 +0100 +2 -2
diff -r 145e49b8574c tools/firmware/rombios/rombios.c
@@ -8362,8 +8362,8 @@ ASM_END
   /* Jump to the boot vector */
 ASM_START
     mov  bp, sp
-//    push cs
-//    push #int18_handler
+    push cs
+    push #int18_handler
     ;; Build an iret stack frame that will take us to the boot vector.
     ;; iret pops ip, then cs, then flags, so push them in the opposite order.
     pushf