summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-07 15:24:31 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-07 15:24:31 +0100
commit10692c5aa9d449cab70965c9c97e5b431d900b9d (patch)
treea753750a13470b64149adccc51f6b777ad7f0fc2
parentd466b19e570644651a6ceb235c076fb1e3b30a35 (diff)
HAL: Add RISC-V Hart.hxx and kCPUBackendName for Processor.hpp (AMD64)
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
-rw-r--r--Private/HALKit/AMD64/Processor.hpp26
-rw-r--r--Private/HALKit/RISCV/Hart.hxx18
2 files changed, 36 insertions, 8 deletions
diff --git a/Private/HALKit/AMD64/Processor.hpp b/Private/HALKit/AMD64/Processor.hpp
index 883d1910..bacfb393 100644
--- a/Private/HALKit/AMD64/Processor.hpp
+++ b/Private/HALKit/AMD64/Processor.hpp
@@ -1,11 +1,15 @@
-/*
- * ========================================================
- *
- * HCore
- * Copyright Mahrouss Logic, all rights reserved.
- *
- * ========================================================
- */
+/* -------------------------------------------
+
+ Copyright Mahrouss Logic
+
+ File: Prcoessor.hxx
+ Purpose: AMD processor abstraction.
+
+ Revision History:
+
+ 30/01/24: Added file (amlel)
+
+------------------------------------------- */
#pragma once
@@ -13,6 +17,12 @@
#include <NewKit/Defines.hpp>
#include <NewKit/Utils.hpp>
+#ifdef kCPUBackendName
+#undef kCPUBackendName
+#endif // ifdef kCPUBackendName
+
+#define kCPUBackendName "AMD64"
+
#define IsActiveLow(flag) (flag & 2)
#define IsLevelTriggered(flag) (flag & 8)
diff --git a/Private/HALKit/RISCV/Hart.hxx b/Private/HALKit/RISCV/Hart.hxx
new file mode 100644
index 00000000..f351d3e5
--- /dev/null
+++ b/Private/HALKit/RISCV/Hart.hxx
@@ -0,0 +1,18 @@
+/* -------------------------------------------
+
+ Copyright Mahrouss Logic
+
+ File: Hart.hxx
+ Purpose: RISC-V hart abstraction.
+
+ Revision History:
+
+ 30/01/24: Added file (amlel)
+
+------------------------------------------- */
+
+#pragma once
+
+#include <NewKit/Defines.hpp>
+
+typedef HCore::Int32 Rv64HartType;