aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/ide.c
diff options
context:
space:
mode:
authorMarvin Borner2020-09-19 23:28:47 +0200
committerMarvin Borner2020-09-19 23:28:47 +0200
commit034762e7caf8e8aa8ad20cf1a81c9582876e14d6 (patch)
treeb1c81f6d3ad27296213a31866d6cfd38109ae878 /kernel/drivers/ide.c
parentc6cde5937d0742b11a7d2fedacc0b093478fe994 (diff)
Wrroooooooom, I'm faster. ig
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;