summaryrefslogtreecommitdiff
path: root/Kernel/IDEDiskDevice.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-11 11:38:14 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-11 11:38:14 +0100
commit298a49c688b4115858576769712b92cbc1162af6 (patch)
treee5908d3048b4781d65e982ef1062aa9833220dca /Kernel/IDEDiskDevice.h
parente6de6c4f451f5d62b18afe877d92a3e0d21a5ce6 (diff)
downloadserenity-298a49c688b4115858576769712b92cbc1162af6.zip
IDEDiskDevice: Detect disk errors and report failure to clients.
Previously we'd just fail silently if there was an I/O error of any kind.
Diffstat (limited to 'Kernel/IDEDiskDevice.h')
-rw-r--r--Kernel/IDEDiskDevice.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/IDEDiskDevice.h b/Kernel/IDEDiskDevice.h
index 2e3fe509e9..beaaca0d57 100644
--- a/Kernel/IDEDiskDevice.h
+++ b/Kernel/IDEDiskDevice.h
@@ -41,7 +41,8 @@ private:
word m_cylinders { 0 };
word m_heads { 0 };
word m_sectors_per_track { 0 };
- mutable volatile bool m_interrupted { false };
+ volatile bool m_interrupted { false };
+ volatile byte m_device_error { 0 };
};