[bio] Add a flag that allows devices to declare that they only deal with cache aligned blocks of memory

This commit is contained in:
Gurjant Kalsi
2015-11-02 16:09:12 -08:00
parent a79328fe97
commit 7e0a4d3f90
10 changed files with 23 additions and 10 deletions

View File

@@ -78,7 +78,8 @@ void platform_init_blkdev(void)
if (get_blkdev_len() == 0)
return;
bio_initialize_bdev(&dev, "block0", 512, get_blkdev_len() / 512, 0, NULL);
bio_initialize_bdev(&dev, "block0", 512, get_blkdev_len() / 512, 0, NULL,
BIO_FLAGS_NONE);
// fill in hooks
dev.read_block = &read_block;