summaryrefslogtreecommitdiffhomepage
path: root/src/loader/mbr.c
diff options
context:
space:
mode:
authorMarvin Borner2021-07-06 22:07:04 +0200
committerMarvin Borner2021-07-06 22:07:04 +0200
commitb2880945ae17ad857bd425540acd3dc75b2cff6b (patch)
treef5dea0028fb5e2b9072aa15f60c497bc7e20d13b /src/loader/mbr.c
parent23aa6f84539ba320a91235fb81681d0754178f62 (diff)
Basic multiboot 1 detection and verification
Diffstat (limited to 'src/loader/mbr.c')
-rw-r--r--src/loader/mbr.c2
1 files changed, 1 insertions, 1 deletions
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;