summaryrefslogtreecommitdiff
path: root/Kernel/Disk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Disk.cpp')
-rw-r--r--Kernel/Disk.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Disk.cpp b/Kernel/Disk.cpp
index 815f31b4eb..9bd00f1a2c 100644
--- a/Kernel/Disk.cpp
+++ b/Kernel/Disk.cpp
@@ -7,6 +7,7 @@
#include "IO.h"
#include "i386.h"
#include "PIC.h"
+#include <AK/Lock.h>
//#define DISK_DEBUG
@@ -55,7 +56,7 @@ static bool waitForInterrupt()
#endif
// FIXME: Add timeout.
while (!interrupted) {
- yield();
+ sched_yield();
}
#ifdef DISK_DEBUG
kprintf("disk: got interrupt!\n");