aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/ide.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/ide.c')
-rw-r--r--kernel/drivers/ide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/ide.c b/kernel/drivers/ide.c
index fe3955c..d637a2b 100644
--- a/kernel/drivers/ide.c
+++ b/kernel/drivers/ide.c
@@ -18,7 +18,7 @@ int ide_wait(int check)
return 0;
}
-void *ide_read(void *b, u32 block)
+void __attribute__((optimize("O0"))) * ide_read(void *b, u32 block)
{
int sector_per_block = BLOCK_SIZE / SECTOR_SIZE; // 2
int sector = block * sector_per_block;