summaryrefslogtreecommitdiffhomepage
path: root/Private/Source
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-28 14:26:58 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-28 14:26:58 +0100
commitf77a876e0ac2611079ee188933f0f3de222dd08a (patch)
treec8230499b03f8ad2cbdddbb6e06607163a176149 /Private/Source
parent2cf9f370d40a5c6512530c600292c5fac0410e11 (diff)
HCoreKrnl\HAL\IDT: Work in progress patch(fix) of HCore interrupt system
on x86. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/Source')
-rw-r--r--Private/Source/KernelCheck.cxx2
-rw-r--r--Private/Source/Storage/ATA.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/Private/Source/KernelCheck.cxx b/Private/Source/KernelCheck.cxx
index 6ce4f4fa..4fc24918 100644
--- a/Private/Source/KernelCheck.cxx
+++ b/Private/Source/KernelCheck.cxx
@@ -25,7 +25,7 @@ extern "C" [[noreturn]] void ke_wait_for_debugger() {
namespace HCore {
void ke_stop(const HCore::Int &id) {
kcout << "*** STOP *** \r\n";
- kcout << "*** HCoreKrnl.dll has trigerred a runtime stop. *** \r\n";
+ kcout << "*** HCoreKrnl.exe has trigerred a runtime stop. *** \r\n";
switch (id) {
case RUNTIME_CHECK_PROCESS: {
diff --git a/Private/Source/Storage/ATA.cxx b/Private/Source/Storage/ATA.cxx
index 6027e6f9..05549e7a 100644
--- a/Private/Source/Storage/ATA.cxx
+++ b/Private/Source/Storage/ATA.cxx
@@ -53,7 +53,7 @@ const char* ata_read_28(ULong lba) {
packet[1] = (UIntPtr)&buffer;
packet[4] = lba;
- rt_wait_for_io();
+ rt_wait_400ns();
return buffer;
}
@@ -70,7 +70,7 @@ const char* ata_read_48(ULong lba) {
packet[1] = (UIntPtr)&buffer;
packet[4] = lba;
- rt_wait_for_io();
+ rt_wait_400ns();
return buffer;
}
@@ -84,7 +84,7 @@ Int32 ata_write_48(ULong lba, const char* buffer) {
packet[1] = (UIntPtr)&buffer;
packet[2] = lba;
- rt_wait_for_io();
+ rt_wait_400ns();
return packet[1] == 2 ? kATAError : 0;
}
@@ -98,7 +98,7 @@ Int32 ata_write_28(ULong lba, const char* text) {
packet[1] = (UIntPtr)&text;
packet[2] = lba;
- rt_wait_for_io();
+ rt_wait_400ns();
return packet[1] == 2 ? kATAError : 0;
}