From d832f9ddc9187c83a52a724d4ea39aea08de485b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 12 Jun 2021 22:10:07 +0200 Subject: Fixed weird bugs without optimizations I may have to revisit the exact problem in the future though. --- kernel/drivers/ide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/drivers/ide.c') diff --git a/kernel/drivers/ide.c b/kernel/drivers/ide.c index 324b453..64471e7 100644 --- a/kernel/drivers/ide.c +++ b/kernel/drivers/ide.c @@ -78,7 +78,7 @@ static void ide_poll(u16 io) assert(!(inb(io + ATA_REG_STATUS) & ATA_SR_ERR)); } -static res ata_read(void *buf, u32 lba, u32 sector_count, struct vfs_dev *dev) +OPTIMIZE("-Ofast") static res ata_read(void *buf, u32 lba, u32 sector_count, struct vfs_dev *dev) { u8 drive = ((struct ata_data *)dev->data)->drive; u16 io = (drive & ATA_PRIMARY << 1) == ATA_PRIMARY ? ATA_PRIMARY_IO : ATA_SECONDARY_IO; -- cgit v1.2.3