From 507b3a76de36e41bdfd1c14d94a397990b26a423 Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 6 Sep 2024 09:38:00 +0200 Subject: [ IMP ] A first set of software patches regarding the OS kernel and it's components. Signed-off-by: Amlal --- dev/HPFS/Defines.hxx | 15 +++++++++++++++ dev/HPFS/Sources/IFSMain.cxx | 14 ++++++++++++++ dev/HPFS/Sources/IFSMain.rs | 12 ------------ dev/HPFS/Sources/compile_flags.txt | 1 + dev/HPFS/hpfs.json | 30 ++++++++++++++++++++---------- 5 files changed, 50 insertions(+), 22 deletions(-) create mode 100644 dev/HPFS/Defines.hxx create mode 100644 dev/HPFS/Sources/IFSMain.cxx delete mode 100644 dev/HPFS/Sources/IFSMain.rs create mode 100644 dev/HPFS/Sources/compile_flags.txt (limited to 'dev/HPFS') 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_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" + ] +} -- cgit v1.2.3