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/dsk.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/loader/dsk.c') diff --git a/src/loader/dsk.c b/src/loader/dsk.c index 338c985..5e8fc3d 100644 --- a/src/loader/dsk.c +++ b/src/loader/dsk.c @@ -4,9 +4,12 @@ #include #include #include +#include void dsk_detect(struct dev *dev) { + assert(dev->type == DEV_DISK); + if (mbr_detect(dev)) return; -- cgit v1.2.3