summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-25 09:38:24 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-25 09:38:24 +0200
commit1cae0d2cde6e775ecb1625aa93a5d65d996efad0 (patch)
tree59b85cf83b18f48c34591dc8f736215d2b747b19 /Private/HALKit
parentf6a38d6c14b314d7b85855f311527ede869db96f (diff)
MHR-16: Load NewLoader correctly.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/HALKit')
-rw-r--r--Private/HALKit/AMD64/HalProcessor.cpp2
-rw-r--r--Private/HALKit/AMD64/Storage/AHCI.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/Private/HALKit/AMD64/HalProcessor.cpp b/Private/HALKit/AMD64/HalProcessor.cpp
index 4fea4e7e..61d98c8c 100644
--- a/Private/HALKit/AMD64/HalProcessor.cpp
+++ b/Private/HALKit/AMD64/HalProcessor.cpp
@@ -8,7 +8,7 @@
/**
* @file Processor.cpp
- * @brief This file is about processor specific functions (in/out...)
+ * @brief This file is about processor specific functions (in/out/cli/std...)
*/
namespace NewOS::HAL {
diff --git a/Private/HALKit/AMD64/Storage/AHCI.cxx b/Private/HALKit/AMD64/Storage/AHCI.cxx
index 5e6b3348..c9db540a 100644
--- a/Private/HALKit/AMD64/Storage/AHCI.cxx
+++ b/Private/HALKit/AMD64/Storage/AHCI.cxx
@@ -33,11 +33,11 @@ NewOS::Boolean drv_std_init(NewOS::UInt16& PortsImplemented) {
for (SizeT devIndex = 0; devIndex < NEWOS_BUS_COUNT; ++devIndex) {
if (iterator[devIndex].Leak().Subclass() == kSATASubClass &&
iterator[devIndex].Leak().ProgIf() == kSATAProgIfAHCI) {
- iterator[devIndex].Leak().EnableMmio();
- kAhciDevice = iterator[devIndex].Leak();
+ iterator[devIndex].Leak().EnableMmio(); /// enable the memory i/o for this ahci device.
+ kAhciDevice = iterator[devIndex].Leak(); /// and then leak the reference.
kcout << "NewKernel: [PCI] Found AHCI controller.\r\n";
-
+
return true;
}
}
@@ -54,4 +54,4 @@ NewOS::Void drv_std_read(NewOS::UInt64 Lba, NewOS::Char* Buf,
NewOS::Void drv_std_write(NewOS::UInt64 Lba, NewOS::Char* Buf,
NewOS::SizeT SectorSz, NewOS::SizeT Size) {}
-#endif // __AHCI__ \ No newline at end of file
+#endif // __AHCI__