diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-22 14:42:11 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-22 14:42:36 +0100 |
| commit | 66c801578d7e7f22cfa1331446a394f3d0fe23f6 (patch) | |
| tree | 7c6a5c15244b4644429ef974d985041ae6dc9b69 | |
| parent | 4a9f1d38611c78cf8d6408a8db704ac54bde1db2 (diff) | |
Storage/ATA.cxx: should only be present if it's the kernel scenario.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
| -rw-r--r-- | Private/HALKit/AMD64/Storage/ATA.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Private/HALKit/AMD64/Storage/ATA.cxx b/Private/HALKit/AMD64/Storage/ATA.cxx index cd68af23..6a4a0252 100644 --- a/Private/HALKit/AMD64/Storage/ATA.cxx +++ b/Private/HALKit/AMD64/Storage/ATA.cxx @@ -18,6 +18,8 @@ #include <Builtins/ATA/Defines.hxx> #include <ArchKit/ArchKit.hpp> +#ifdef __KERNEL__ + using namespace HCore; using namespace HCore::HAL; @@ -172,4 +174,6 @@ Void drv_ata_write(UInt32 Lba, UInt16 IO, UInt8 Master, Char* Buf, } /// @check is ATA detected? -Boolean drv_ata_detected(Void) { return kATADetected; }
\ No newline at end of file +Boolean drv_ata_detected(Void) { return kATADetected; } + +#endif // ifdef __KERNEL__ |
