summaryrefslogtreecommitdiffhomepage
path: root/Public
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-05 10:53:58 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-05 10:53:58 +0100
commitf8c9b81ff120160af60af6e9d44cba338aceb65a (patch)
treecb4683589aab4d50470628f189dc366814fd80ad /Public
parente03903b98aa0b4d2dc3ed4637863124f28c4e1fe (diff)
Kernel: Improved kernel design and Bootloader runs on real hardware!
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Public')
-rw-r--r--Public/Kits/SystemKit/CoreAPI.hxx5
-rw-r--r--Public/Kits/SystemKit/FileAPI.hxx3
-rw-r--r--Public/Kits/SystemKit/SystemCall.hxx18
-rw-r--r--Public/Kits/ZipKit/Zip.cxx2
4 files changed, 8 insertions, 20 deletions
diff --git a/Public/Kits/SystemKit/CoreAPI.hxx b/Public/Kits/SystemKit/CoreAPI.hxx
index fa5e8eef..64373987 100644
--- a/Public/Kits/SystemKit/CoreAPI.hxx
+++ b/Public/Kits/SystemKit/CoreAPI.hxx
@@ -24,3 +24,8 @@
#define STDCALL __attribute__((stdcall))
#define CDECL __attribute__((cdecl))
+#define MSCALL __attribute__((ms_abi))
+
+typedef __UINT16_TYPE__ WORD;
+typedef __UINT32_TYPE__ DWORD;
+typedef __UINT64_TYPE__ QWORD;
diff --git a/Public/Kits/SystemKit/FileAPI.hxx b/Public/Kits/SystemKit/FileAPI.hxx
index 350e27f4..7dc3dc74 100644
--- a/Public/Kits/SystemKit/FileAPI.hxx
+++ b/Public/Kits/SystemKit/FileAPI.hxx
@@ -32,7 +32,8 @@ class HFile final {
void Rewind();
public:
- void SetMIME(const char *mime);
+ const char *MIME();
+ void MIME(const char *mime);
};
typedef HFile *HFilePtr;
diff --git a/Public/Kits/SystemKit/SystemCall.hxx b/Public/Kits/SystemKit/SystemCall.hxx
deleted file mode 100644
index 64d65d4b..00000000
--- a/Public/Kits/SystemKit/SystemCall.hxx
+++ /dev/null
@@ -1,18 +0,0 @@
-/* -------------------------------------------
-
- Copyright Mahrouss Logic
-
- File: SystemCall.hxx
- Purpose:
-
- Revision History:
-
- 31/01/24: Added file (amlel)
-
-------------------------------------------- */
-
-#pragma once
-
-/// @brief System Call Interface
-
-#include <SystemKit/CoreAPI.hxx>
diff --git a/Public/Kits/ZipKit/Zip.cxx b/Public/Kits/ZipKit/Zip.cxx
index 74e2a5d8..77fa0a8f 100644
--- a/Public/Kits/ZipKit/Zip.cxx
+++ b/Public/Kits/ZipKit/Zip.cxx
@@ -29,7 +29,7 @@ HFilePtr ZipStream::FlushToFile(const char *name) {
this->fSharedSz = HHeap::Shared()->Size(this->fSharedData);
- fp->SetMIME("application/x-bzip");
+ fp->MIME("application/x-bzip");
fp->Write(this->fSharedData, this->fSharedSz);
return fp;