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/impl/all.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/loader/impl/all.c (limited to 'src/loader/impl/all.c') diff --git a/src/loader/impl/all.c b/src/loader/impl/all.c new file mode 100644 index 0000000..1f19b1e --- /dev/null +++ b/src/loader/impl/all.c @@ -0,0 +1,12 @@ +// MIT License, Copyright (c) 2021 Marvin Borner + +#include +#include + +u8 impl_detect(struct dev *dev, const char *path) +{ + if (mb1_detect(dev, path)) + return 1; + + return 0; +} -- cgit v1.2.3