summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-05 08:01:06 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-05 08:01:06 +0100
commite03903b98aa0b4d2dc3ed4637863124f28c4e1fe (patch)
tree26a970e7ec1121ff54e9091b6e7670fb7841e53b
parenteddb029b924d8ddf930667071878b4553c193492 (diff)
Meta: cleanup and fix assembly routines.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
-rw-r--r--Private/ArchKit/compile_flags.txt1
-rw-r--r--Private/FSKit/NewFS.hxx28
-rw-r--r--Private/HALKit/AMD64/HalInstallTIB.asm2
-rw-r--r--Private/HALKit/AMD64/HalRoutines.s4
-rw-r--r--Private/Source/compile_flags.txt3
-rw-r--r--Private/compile_flags.txt1
-rw-r--r--Public/Kits/DDKit/.gitkeep0
-rw-r--r--Public/Kits/DDKit/README.TXT3
8 files changed, 21 insertions, 21 deletions
diff --git a/Private/ArchKit/compile_flags.txt b/Private/ArchKit/compile_flags.txt
index a37ae6bf..03f62eac 100644
--- a/Private/ArchKit/compile_flags.txt
+++ b/Private/ArchKit/compile_flags.txt
@@ -3,3 +3,4 @@
-std=c++20
-I./
-I../
+-I$(HOME)/
diff --git a/Private/FSKit/NewFS.hxx b/Private/FSKit/NewFS.hxx
index d0c43f02..784ea158 100644
--- a/Private/FSKit/NewFS.hxx
+++ b/Private/FSKit/NewFS.hxx
@@ -13,8 +13,6 @@
#include <KernelKit/DriveManager.hpp>
#include <NewKit/Defines.hpp>
-#include "KernelKit/FileManager.hpp"
-
/**
@brief NewFS or HCFS
HCore FileSystem.
@@ -24,8 +22,8 @@
#define kInvalidCatalog -1
#define kNameLen 256
-#define kNewFSIdentLen 4
-#define kNewFSIdent "HCFS"
+#define kNewFSIdentLen 6
+#define kNewFSIdent " HCFS"
#define kPadLen 16
#define kNewFSVersion 1
@@ -173,20 +171,22 @@ class NewFSImplementation {
virtual NewFork* ForkFrom(NewCatalog& catalog, const Int64& id) = 0;
- virtual NewCatalog* RootCatalog(void) = 0;
- virtual NewCatalog* NextCatalog(NewCatalog& cur) = 0;
- virtual NewCatalog* PrevCatalog(NewCatalog& cur) = 0;
+ virtual NewCatalog* RootCatalog() = 0;
+ virtual NewCatalog* NextCatalog(_Input _Output NewCatalog& cur) = 0;
+ virtual NewCatalog* PrevCatalog(_Input _Output NewCatalog& cur) = 0;
- virtual NewCatalog* GetCatalog(const char* name) = 0;
+ virtual NewCatalog* GetCatalog(_Input const char* name) = 0;
- virtual NewCatalog* CreateCatalog(const char* name, const Int32& flags,
- const Int32& kind) = 0;
- virtual NewCatalog* CreateCatalog(const char* name) = 0;
+ virtual NewCatalog* CreateCatalog(_Input const char* name,
+ _Input const Int32& flags,
+ _Input const Int32& kind) = 0;
+ virtual NewCatalog* CreateCatalog(_Input const char* name) = 0;
- virtual bool WriteCatalog(NewCatalog& catalog, voidPtr data) = 0;
- virtual bool RemoveCatalog(NewCatalog& catalog) = 0;
+ virtual bool WriteCatalog(_Input _Output NewCatalog& catalog,
+ voidPtr data) = 0;
+ virtual bool RemoveCatalog(_Input NewCatalog& catalog) = 0;
- virtual bool Format(DriveTraits& drive) = 0;
+ virtual bool Format(_Input _Output DriveTraits& drive) = 0;
};
///
diff --git a/Private/HALKit/AMD64/HalInstallTIB.asm b/Private/HALKit/AMD64/HalInstallTIB.asm
index 58f4801b..260b496f 100644
--- a/Private/HALKit/AMD64/HalInstallTIB.asm
+++ b/Private/HALKit/AMD64/HalInstallTIB.asm
@@ -12,7 +12,7 @@
[global rt_install_tib]
rt_install_tib:
- mov rsi, gs
+ mov rcx, gs
ret
;; //////////////////////////////////////////////////// ;;
diff --git a/Private/HALKit/AMD64/HalRoutines.s b/Private/HALKit/AMD64/HalRoutines.s
index 7965c8a8..3e70a507 100644
--- a/Private/HALKit/AMD64/HalRoutines.s
+++ b/Private/HALKit/AMD64/HalRoutines.s
@@ -5,11 +5,11 @@
.section .text
rt_load_gdt:
- lgdt (%rdi)
+ lgdt (%rcx)
ret
rt_load_idt:
- lidt (%rdi)
+ lidt (%rcx)
sti
ret
diff --git a/Private/Source/compile_flags.txt b/Private/Source/compile_flags.txt
index 6b26618c..1b0ad789 100644
--- a/Private/Source/compile_flags.txt
+++ b/Private/Source/compile_flags.txt
@@ -1,4 +1,5 @@
-nostdlib
-ffreestanding
-std=c++20
--I../ \ No newline at end of file
+-I../
+-I$(HOME)/
diff --git a/Private/compile_flags.txt b/Private/compile_flags.txt
index bb35b987..12b56e37 100644
--- a/Private/compile_flags.txt
+++ b/Private/compile_flags.txt
@@ -2,3 +2,4 @@
-ffreestanding
-std=c++20
-I./
+-I$(HOME)/
diff --git a/Public/Kits/DDKit/.gitkeep b/Public/Kits/DDKit/.gitkeep
deleted file mode 100644
index e69de29b..00000000
--- a/Public/Kits/DDKit/.gitkeep
+++ /dev/null
diff --git a/Public/Kits/DDKit/README.TXT b/Public/Kits/DDKit/README.TXT
deleted file mode 100644
index fec20a60..00000000
--- a/Public/Kits/DDKit/README.TXT
+++ /dev/null
@@ -1,3 +0,0 @@
-Device Driver Kit
-
-A Common framework for Device driver development.