Skip to content

Commit

Permalink
Disks: Fix MBR to support [Win95 Laajenukset] also called like [Win95…
Browse files Browse the repository at this point in the history
… Extended]
  • Loading branch information
NDRAEY committed Apr 19, 2024
1 parent 978a12b commit a7f1498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/src/drv/disk/mbr.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void ebr_recursive_dump(char disk, uint32_t abs_lba, uint32_t lba, int depth) {
w.end_cylinder, w.end_head, w.end_sector,
w.start_sector_lba, w.num_sectors);

qemu_log("%*s A: %d; [%d:%d:%d] Type: %d; [%d:%d:%d] SLBA: %d; COUNT: %d\n",
tty_printf("%*s A: %d; [%d:%d:%d] Type: %d; [%d:%d:%d] SLBA: %d; COUNT: %d\n",
depth + 3, "|--",
w.activity,
w.start_cylinder, w.start_head, w.start_sector,
Expand Down Expand Up @@ -53,7 +53,7 @@ void mbr_dump(char disk, uint32_t i) {
p.end_cylinder, p.end_head, p.end_sector,
p.start_sector_lba, p.num_sectors);

if(p.type == 5) {
if(p.type == 5 || p.type == 15) {
ebr_recursive_dump(disk, p.start_sector_lba, 0, 1);
}
}
Expand Down

0 comments on commit a7f1498

Please sign in to comment.