summaryrefslogtreecommitdiffhomepage
path: root/Public
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-28 17:48:25 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-28 17:49:13 +0100
commit1ab61e6bb20dd39f85fca30c1d0a83db12fea9d6 (patch)
tree3c3912c242e8dc822ce3cbe9871b4b5e7363f336 /Public
parentf77a876e0ac2611079ee188933f0f3de222dd08a (diff)
HCoreKrnl: Fix IDT, will get the rt_handle_interrupts right, and not
corrupt the registers, see below. - New register layout in Stackframe. - Thinking about a way to wrap this handler into a valid win64 call. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Public')
-rw-r--r--Public/Kits/SystemKit/CoreAPI.hxx3
-rw-r--r--Public/Kits/SystemKit/FileAPI.hxx2
-rw-r--r--Public/Kits/SystemKit/HeapAPI.hxx2
-rw-r--r--Public/Kits/SystemKit/XIFF.hxx22
4 files changed, 16 insertions, 13 deletions
diff --git a/Public/Kits/SystemKit/CoreAPI.hxx b/Public/Kits/SystemKit/CoreAPI.hxx
index 5d9bfb1a..9d907104 100644
--- a/Public/Kits/SystemKit/CoreAPI.hxx
+++ b/Public/Kits/SystemKit/CoreAPI.hxx
@@ -31,6 +31,9 @@ typedef __UINT16_TYPE__ WORD;
typedef __UINT32_TYPE__ DWORD;
typedef __UINT64_TYPE__ QWORD;
+typedef __WCHAR_TYPE__ WCHAR;
+typedef WCHAR* PWCHAR;
+
#ifdef __x86_64__
# define _M_AMD64
#endif
diff --git a/Public/Kits/SystemKit/FileAPI.hxx b/Public/Kits/SystemKit/FileAPI.hxx
index cc91a8a5..e0213c57 100644
--- a/Public/Kits/SystemKit/FileAPI.hxx
+++ b/Public/Kits/SystemKit/FileAPI.hxx
@@ -15,7 +15,7 @@
using namespace HCore;
-/// @brief OC class, translated to C++
+/// @brief SOM class, translated to C++
class HFile final {
public:
diff --git a/Public/Kits/SystemKit/HeapAPI.hxx b/Public/Kits/SystemKit/HeapAPI.hxx
index c4c4a297..9470de99 100644
--- a/Public/Kits/SystemKit/HeapAPI.hxx
+++ b/Public/Kits/SystemKit/HeapAPI.hxx
@@ -12,7 +12,7 @@
#include <CompilerKit/CompilerKit.hpp>
#include <NewKit/Defines.hpp>
-/// @brief OC class, translated to C++
+/// @brief SOM class, translated to C++
using namespace HCore;
diff --git a/Public/Kits/SystemKit/XIFF.hxx b/Public/Kits/SystemKit/XIFF.hxx
index c2a8371b..acaf9103 100644
--- a/Public/Kits/SystemKit/XIFF.hxx
+++ b/Public/Kits/SystemKit/XIFF.hxx
@@ -12,7 +12,7 @@
------------------------------------------------------- */
-#include <NewKit/Defines.hpp>
+#include <SystemKit/CoreAPI.hxx>
/***
* @brief Generic XIFF header
@@ -20,17 +20,17 @@
*/
struct PACKED XiffHeader final {
- unsigned char f_Mag[5]; // XIFF string (includes \0)
- unsigned int f_Size; // overall size of header (XiffHeader) in bytes
- unsigned int f_FormatType; // format type. generic
- unsigned char f_SpecificMag[4]; // The sub header magic
- unsigned int f_SpecificSize; // length of the format data
- unsigned int f_SpecificFormatType; // format type. generic
+ BYTE f_Mag[5]; // XIFF string (includes \0)
+ DWORD f_Size; // overall size of header (XiffHeader) in bytes
+ DWORD f_FormatType; // format type. generic
+ BYTE f_SpecificMag[4]; // The sub header magic
+ DWORD f_SpecificSize; // length of the format data
+ DWORD f_SpecificFormatType; // format type. generic
};
-#define kXIFFVideo "XVFF"
-#define kXIFFAudio "XAFF"
-#define kXIFFInstaller "XnFF"
-#define kXIFFGeneric "XIFF"
+#define kXIFFContainerVideo "XVFF"
+#define kXIFFContainerAudio "XAFF"
+#define kXIFFContainerInstaller "XnFF"
+#define kXIFFContainerGeneric "XIFF"
#endif // ifndef __XIFF__