summaryrefslogtreecommitdiffhomepage
path: root/dev/HPFS
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-09-06 09:38:00 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-09-06 09:38:00 +0200
commit507b3a76de36e41bdfd1c14d94a397990b26a423 (patch)
treee087051b51d36828fbca98d9e9e74cb1381a4def /dev/HPFS
parent98f504c442b1a0f769e2f20e4fb251813dd5dd67 (diff)
[ IMP ] A first set of software patches regarding the OS kernel and it's components.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/HPFS')
-rw-r--r--dev/HPFS/Defines.hxx15
-rw-r--r--dev/HPFS/Sources/IFSMain.cxx14
-rw-r--r--dev/HPFS/Sources/IFSMain.rs12
-rw-r--r--dev/HPFS/Sources/compile_flags.txt1
-rw-r--r--dev/HPFS/hpfs.json30
5 files changed, 50 insertions, 22 deletions
diff --git a/dev/HPFS/Defines.hxx b/dev/HPFS/Defines.hxx
new file mode 100644
index 00000000..8d0536a0
--- /dev/null
+++ b/dev/HPFS/Defines.hxx
@@ -0,0 +1,15 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies.
+
+ FILE: Defines.hxx
+ PURPOSE: HPFS IFS defines.
+
+------------------------------------------- */
+
+#pragma once
+
+typedef __INT32_TYPE__ HPFS_INT32;
+typedef void HPFS_VOID;
+
+#define cHPFSVersion 0x0100
diff --git a/dev/HPFS/Sources/IFSMain.cxx b/dev/HPFS/Sources/IFSMain.cxx
new file mode 100644
index 00000000..229efb15
--- /dev/null
+++ b/dev/HPFS/Sources/IFSMain.cxx
@@ -0,0 +1,14 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies.
+
+ FILE: IFSMain.cxx
+ PURPOSE: HPFS IFS entrypoint.
+
+------------------------------------------- */
+
+#include <HPFS/Defines.hxx>
+
+HPFS_INT32 IFSStart(HPFS_VOID) {
+ return 0;
+}
diff --git a/dev/HPFS/Sources/IFSMain.rs b/dev/HPFS/Sources/IFSMain.rs
deleted file mode 100644
index 5a49585a..00000000
--- a/dev/HPFS/Sources/IFSMain.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-/* -------------------------------------------
-
- Copyright ZKA Technologies.
-
- FILE: IFSMain.rs
- PURPOSE: HPFS IFS.
-
-------------------------------------------- */
-
-fn IFSStart() {
-
-} \ No newline at end of file
diff --git a/dev/HPFS/Sources/compile_flags.txt b/dev/HPFS/Sources/compile_flags.txt
new file mode 100644
index 00000000..7c66a118
--- /dev/null
+++ b/dev/HPFS/Sources/compile_flags.txt
@@ -0,0 +1 @@
+-I../../
diff --git a/dev/HPFS/hpfs.json b/dev/HPFS/hpfs.json
index 3a13297b..a7ba778e 100644
--- a/dev/HPFS/hpfs.json
+++ b/dev/HPFS/hpfs.json
@@ -1,11 +1,21 @@
{
- "compiler_path": "rustc",
- "compiler_std": "",
- "sources_path": ["Sources/*.rs"],
- "output_name": "hpfs.sys",
- "compiler_flags": [
- ],
- "cpp_macros": [
- ]
- }
- \ No newline at end of file
+ "compiler_path": "x86_64-w64-mingw32-g++",
+ "compiler_std": "c++20",
+ "headers_path": ["../"],
+ "sources_path": ["Sources/*.cxx"],
+ "output_name": "hpfs.sys",
+ "compiler_flags": [
+ "-fPIC",
+ "-ffreestanding",
+ "-shared",
+ "-fno-rtti",
+ "-fno-exceptions",
+ "-Wl,--subsystem=17"
+ ],
+ "cpp_macros": [
+ "__HPFS_IMPL__",
+ "cHPFSVersion=0x0100",
+ "cHPFSVersionHighest=0x0100",
+ "cHPFSVersionLowest=0x0100"
+ ]
+}