:: commit 094c8eca5bd2927d01b043efdcdf7d695048a443

mintsuki <mintsuki@protonmail.com> — 2021-03-13 13:26

parents: 1f1f601c50

protos: Properly advertise the presence of PXE to stivale2

diff --git a/stage23/entry.s3.c b/stage23/entry.s3.c
index 70586bc0..13d8df42 100644
--- a/stage23/entry.s3.c
+++ b/stage23/entry.s3.c
@@ -98,17 +98,21 @@ void stage3_common(void) {
         panic("PROTOCOL not specified");
     }
 
-    if (0) {
-
-    } else if (!strcmp(proto, "stivale")) {
+    if (!strcmp(proto, "stivale")) {
         stivale_load(config, cmdline);
     } else if (!strcmp(proto, "stivale2")) {
-        stivale2_load(config, cmdline, false /*booted_from_pxe*/);
-#if defined (bios)
+        stivale2_load(config, cmdline, boot_volume->pxe);
     } else if (!strcmp(proto, "linux")) {
+#if defined (bios)
         linux_load(config, cmdline);
+#elif defined (uefi)
+        panic("UEFI Limine does not support the Linux boot protocol");
+#endif
     } else if (!strcmp(proto, "chainload")) {
+#if defined (bios)
         chainload(config);
+#elif defined (uefi)
+        panic("UEFI Limine does not support the chainload boot protocol");
 #endif
     }
 
tab: 248 wrap: offon