boot: fix crash on early memory allocations

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-08-11 18:29:51 -04:00
commit 1d1dad34ce
10 changed files with 120 additions and 32 deletions

View file

@ -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_ */