mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-24 01:19:38 +03:00
misc: Misc Hyper-V related fixes. Closes #150
This commit is contained in:
parent
bcf01fa39a
commit
b80fb36744
@ -151,7 +151,7 @@ void disk_create_index(void) {
|
||||
if (r.eflags & EFLAGS_CF)
|
||||
continue;
|
||||
|
||||
if (drive_params.lba_count == 0 || drive_params.bytes_per_sect == 0)
|
||||
if (drive_params.bytes_per_sect == 0)
|
||||
continue;
|
||||
|
||||
struct volume *block = ext_mem_alloc(sizeof(struct volume));
|
||||
|
@ -70,9 +70,9 @@ static bool stage3_init(struct volume *part) {
|
||||
}
|
||||
|
||||
enum {
|
||||
BOOTED_FROM_HDD,
|
||||
BOOTED_FROM_PXE,
|
||||
BOOTED_FROM_CD
|
||||
BOOTED_FROM_HDD = 0,
|
||||
BOOTED_FROM_PXE = 1,
|
||||
BOOTED_FROM_CD = 2
|
||||
};
|
||||
|
||||
noreturn void entry(uint8_t boot_drive, int boot_from) {
|
||||
@ -101,6 +101,10 @@ noreturn void entry(uint8_t boot_drive, int boot_from) {
|
||||
boot_volume = pxe_bind_volume();
|
||||
}
|
||||
|
||||
if (boot_volume == NULL) {
|
||||
panic(false, "Could not determine boot drive\n");
|
||||
}
|
||||
|
||||
volume_iterate_parts(boot_volume,
|
||||
if (stage3_init(_PART)) {
|
||||
break;
|
||||
|
@ -11,7 +11,6 @@ THEME_BACKGROUND=50000000
|
||||
BACKGROUND_PATH=${BACKGROUND_PATH}
|
||||
BACKGROUND_STYLE=stretched
|
||||
BACKDROP_COLOUR=008080
|
||||
SERIAL=yes
|
||||
|
||||
:Stivale2 Test
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user