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

This commit is contained in:
mintsuki 2020-06-25 18:51:54 +02:00
parent 5a26305981
commit bf86dbd55d
3 changed files with 3 additions and 1 deletions

View File

@ -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

Binary file not shown.

View File

@ -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;