/* * This is just to allocate some memory as a block device. */ #include extern char _start_bdev[]; extern char _end_bdev[]; __attribute__((section(".data.memfs"))) char blockdevice[SZ_1MB*2]; void *vfs_rootdev_open(void) { return (void *)_start_bdev; }