Fix bug where BIOS flag was not set in stivale, add TempleOS to list of supported boot protocols
This commit is contained in:
parent
5a26305981
commit
bf86dbd55d
@ -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
|
||||
|
BIN
qloader2.bin
BIN
qloader2.bin
Binary file not shown.
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user