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/impl/all.c | |
parent | 23aa6f84539ba320a91235fb81681d0754178f62 (diff) |
Basic multiboot 1 detection and verification
Diffstat (limited to 'src/loader/impl/all.c')
-rw-r--r-- | src/loader/impl/all.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 <impl/all.h> +#include <impl/mb1.h> + +u8 impl_detect(struct dev *dev, const char *path) +{ + if (mb1_detect(dev, path)) + return 1; + + return 0; +} |