feat: rank drivers at compile time

This commit is contained in:
2021-03-07 20:30:07 +01:00
parent f6e720bad9
commit 945b18b2b2
11 changed files with 1254 additions and 62 deletions

View File

@@ -100,10 +100,9 @@ void mbr_read_from_ide(uint8_t ide_drive) {
free(mbr_data);
}
BLOCK_DEV_DRIVER(
BLOCK_DEV_DRIVER(200) = {
.name = "mbr",
.rank = 100,
.flags.root_only = 1,
.check_device = mbr_check_device,
.free_device = NULL, // todo
);
};