diff options
author | Marvin Borner | 2021-07-06 22:07:04 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-06 22:07:04 +0200 |
commit | b2880945ae17ad857bd425540acd3dc75b2cff6b (patch) | |
tree | f5dea0028fb5e2b9072aa15f60c497bc7e20d13b /src/loader/dsk.c | |
parent | 23aa6f84539ba320a91235fb81681d0754178f62 (diff) |
Basic multiboot 1 detection and verification
Diffstat (limited to 'src/loader/dsk.c')
-rw-r--r-- | src/loader/dsk.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <fs/ext2.h> #include <log.h> #include <mbr.h> +#include <pnc.h> void dsk_detect(struct dev *dev) { + assert(dev->type == DEV_DISK); + if (mbr_detect(dev)) return; |