:: commit bf86dbd55d4d4fc89140c64fdb74852df2cc1df9

mintsuki <mintsuki@protonmail.com> — 2020-06-25 16:51

parents: 5a26305981

Fix bug where BIOS flag was not set in stivale, add TempleOS to list of supported boot protocols

diff --git a/README.md b/README.md
index efde5e3e..64fb76f9 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,7 @@ x86/x86_64 BIOS Bootloader
 ### Supported boot protocols
 * Linux
 * stivale (qloader2's native boot protocol, see STIVALE.md for details)
+* TempleOS
 
 ### Supported filesystems
 * ext2
diff --git a/qloader2.bin b/qloader2.bin
index 78eb3e63..c5bbae0d 100644
Binary files a/qloader2.bin and b/qloader2.bin differ
diff --git a/src/protos/stivale.c b/src/protos/stivale.c
index 0f72574a..401f3e1b 100644
--- a/src/protos/stivale.c
+++ b/src/protos/stivale.c
@@ -52,7 +52,7 @@ struct stivale_struct {
 struct stivale_struct stivale_struct = {0};
 
 void stivale_load(char *cmdline, int boot_drive) {
-    stivale_struct.flags &= (1 << 0);  // set bit 0 since we are BIOS and not UEFI
+    stivale_struct.flags |= (1 << 0);  // set bit 0 since we are BIOS and not UEFI
 
     int kernel_drive; {
         char buf[32];
@@ -216,6 +216,7 @@ void stivale_load(char *cmdline, int boot_drive) {
     stivale_struct.cmdline = (uint64_t)(size_t)cmdline;
 
     stivale_struct.epoch = time();
+    print("stivale: Current epoch: %U\n", stivale_struct.epoch);
 
     stivale_struct.framebuffer_width  = stivale_hdr.framebuffer_width;
     stivale_struct.framebuffer_height = stivale_hdr.framebuffer_height;
tab: 248 wrap: offon