From b2880945ae17ad857bd425540acd3dc75b2cff6b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 6 Jul 2021 22:07:04 +0200 Subject: Basic multiboot 1 detection and verification --- src/loader/mbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/loader/mbr.c') diff --git a/src/loader/mbr.c b/src/loader/mbr.c index 599952c..df0c1db 100644 --- a/src/loader/mbr.c +++ b/src/loader/mbr.c @@ -10,7 +10,7 @@ static struct mbr_entry entries[16] = { 0 }; static s32 mbr_read(void *buf, u32 lba, u32 sector_count, struct dev *part) { u8 dev_id = (part->data & 0xff00) >> 8; - struct dev *dev = dev_get(dev_id); + struct dev *dev = dev_get_by_id(dev_id); assert(dev && dev->type == DEV_DISK && dev->read); u8 mbr_id = part->data & 0xff; -- cgit v1.2.3