boot: fix crash on early memory allocations
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
be49cc4839
commit
1d1dad34ce
10 changed files with 120 additions and 32 deletions
|
|
@ -39,7 +39,7 @@ struct block_device {
|
|||
|
||||
ssize_t block_read(struct block_device *dev, char *buf, size_t offset, size_t n_blocks);
|
||||
ssize_t block_write(struct block_device *dev, const char *buf, size_t offset, size_t n_blocks);
|
||||
|
||||
int block_device_register(char *name, size_t lba_start, struct block_ops *ops, struct block_device **out);
|
||||
int block_check_partitions(struct block_device *bdev);
|
||||
|
||||
#endif /* _BLOCK_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue