summaryrefslogtreecommitdiffhomepage
path: root/Private
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-26 22:49:10 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-26 22:49:10 +0100
commit44a081a4442181b208c09c6f748124c9d23b61fd (patch)
treed0f161eb8d3ea5997895db37381c7ea853eae2d1 /Private
parenteba8b7ddd0a455d9e49f32dcae712c5612c0093c (diff)
Kernel: Adding NewFS I/O support, Fix SMPManager and new Kits in /Public/.
New dependency: zlib. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private')
-rw-r--r--Private/HALKit/AMD64/ACPI/ACPI.hpp2
-rw-r--r--Private/HALKit/AMD64/ACPI/ACPIManager.hpp2
-rw-r--r--Private/HALKit/Alpha/Processor.hpp2
-rw-r--r--Private/KernelKit/PCI/Database.hpp2
-rw-r--r--Private/KernelKit/PCI/Device.hpp2
-rw-r--r--Private/KernelKit/PCI/Dma.hpp2
-rw-r--r--Private/KernelKit/PCI/Express.hpp2
-rw-r--r--Private/KernelKit/PCI/IO.hpp2
-rw-r--r--Private/KernelKit/PCI/PCI.hpp2
-rw-r--r--Private/NetworkKit/IP.hpp2
-rw-r--r--Private/NetworkKit/NetworkDevice.hpp2
-rw-r--r--Private/Source/NewFS-IO.cxx15
-rw-r--r--Private/Source/SMPManager.cxx10
-rw-r--r--Private/html/hCore::CWindowLookAndFeel.html23
-rw-r--r--Private/makefile2
15 files changed, 36 insertions, 36 deletions
diff --git a/Private/HALKit/AMD64/ACPI/ACPI.hpp b/Private/HALKit/AMD64/ACPI/ACPI.hpp
index 9c000409..590358ff 100644
--- a/Private/HALKit/AMD64/ACPI/ACPI.hpp
+++ b/Private/HALKit/AMD64/ACPI/ACPI.hpp
@@ -2,7 +2,7 @@
* ========================================================
*
* hCore Date Added: 13/02/2023
- * Copyright XPX Corp, all rights reserved.
+ * Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
diff --git a/Private/HALKit/AMD64/ACPI/ACPIManager.hpp b/Private/HALKit/AMD64/ACPI/ACPIManager.hpp
index d8cf6bcf..63afe972 100644
--- a/Private/HALKit/AMD64/ACPI/ACPIManager.hpp
+++ b/Private/HALKit/AMD64/ACPI/ACPIManager.hpp
@@ -2,7 +2,7 @@
* ========================================================
*
* hCore Date Added: 20/02/2023
- * Copyright XPX Corp, all rights reserved.
+ * Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
diff --git a/Private/HALKit/Alpha/Processor.hpp b/Private/HALKit/Alpha/Processor.hpp
index 7e230c0e..7c744e19 100644
--- a/Private/HALKit/Alpha/Processor.hpp
+++ b/Private/HALKit/Alpha/Processor.hpp
@@ -2,7 +2,7 @@
* ========================================================
*
* hCore
- * Copyright XPX Corp, all rights reserved.
+ * Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
diff --git a/Private/KernelKit/PCI/Database.hpp b/Private/KernelKit/PCI/Database.hpp
index b709ac66..b62108a7 100644
--- a/Private/KernelKit/PCI/Database.hpp
+++ b/Private/KernelKit/PCI/Database.hpp
@@ -2,7 +2,7 @@
* ========================================================
*
* hCore
- * Copyright XPX Corp, all rights reserved.
+ * Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
diff --git a/Private/KernelKit/PCI/Device.hpp b/Private/KernelKit/PCI/Device.hpp
index 9c89e1b5..8e956563 100644
--- a/Private/KernelKit/PCI/Device.hpp
+++ b/Private/KernelKit/PCI/Device.hpp
@@ -2,7 +2,7 @@
* ========================================================
*
* hCore
- * Copyright XPX Corp, all rights reserved.
+ * Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
diff --git a/Private/KernelKit/PCI/Dma.hpp b/Private/KernelKit/PCI/Dma.hpp
index 518b6141..025192f0 100644
--- a/Private/KernelKit/PCI/Dma.hpp
+++ b/Private/KernelKit/PCI/Dma.hpp
@@ -2,7 +2,7 @@
* ========================================================
*
* hCore
- * Copyright XPX Corp, all rights reserved.
+ * Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
diff --git a/Private/KernelKit/PCI/Express.hpp b/Private/KernelKit/PCI/Express.hpp
index d53d636a..a3febed1 100644
--- a/Private/KernelKit/PCI/Express.hpp
+++ b/Private/KernelKit/PCI/Express.hpp
@@ -2,7 +2,7 @@
* ========================================================
*
* hCore
- * Copyright XPX Corp, all rights reserved.
+ * Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
diff --git a/Private/KernelKit/PCI/IO.hpp b/Private/KernelKit/PCI/IO.hpp
index 95f8f9db..9bb820be 100644
--- a/Private/KernelKit/PCI/IO.hpp
+++ b/Private/KernelKit/PCI/IO.hpp
@@ -2,7 +2,7 @@
* ========================================================
*
* hCore
- * Copyright XPX Corp, all rights reserved.
+ * Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
diff --git a/Private/KernelKit/PCI/PCI.hpp b/Private/KernelKit/PCI/PCI.hpp
index c5533684..487d7614 100644
--- a/Private/KernelKit/PCI/PCI.hpp
+++ b/Private/KernelKit/PCI/PCI.hpp
@@ -2,7 +2,7 @@
* ========================================================
*
* hCore
- * Copyright XPX Corp, all rights reserved.
+ * Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
diff --git a/Private/NetworkKit/IP.hpp b/Private/NetworkKit/IP.hpp
index 870ebbc3..7323296f 100644
--- a/Private/NetworkKit/IP.hpp
+++ b/Private/NetworkKit/IP.hpp
@@ -2,7 +2,7 @@
* ========================================================
*
* hCore
- * Copyright XPX Corp, all rights reserved.
+ * Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
diff --git a/Private/NetworkKit/NetworkDevice.hpp b/Private/NetworkKit/NetworkDevice.hpp
index ce4361a9..801a325e 100644
--- a/Private/NetworkKit/NetworkDevice.hpp
+++ b/Private/NetworkKit/NetworkDevice.hpp
@@ -2,7 +2,7 @@
* ========================================================
*
* hCore
- * Copyright XPX Corp, all rights reserved.
+ * Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
diff --git a/Private/Source/NewFS-IO.cxx b/Private/Source/NewFS-IO.cxx
new file mode 100644
index 00000000..ce81db40
--- /dev/null
+++ b/Private/Source/NewFS-IO.cxx
@@ -0,0 +1,15 @@
+/*
+* ========================================================
+*
+* hCore
+* Copyright 2024 Mahrouss Logic, all rights reserved.
+*
+* ========================================================
+*/
+
+#include <FSKit/NewFS.hxx>
+#include <Private/KernelKit/FileManager.hpp>
+#include <Private/KernelKit/DriveManager.hpp>
+
+/// bugs 0
+
diff --git a/Private/Source/SMPManager.cxx b/Private/Source/SMPManager.cxx
index 4168a458..1c73cb82 100644
--- a/Private/Source/SMPManager.cxx
+++ b/Private/Source/SMPManager.cxx
@@ -11,6 +11,8 @@
#include <KernelKit/ProcessManager.hpp>
#include <ArchKit/Arch.hpp>
+/// BUGS: 0
+
//! This file handles multi processing in hCore.
//! Multi processing is needed for File I/O, networking and scheduling.
@@ -37,6 +39,8 @@ namespace hCore
bool ProcessorCore::IsBusy() noexcept { return m_Busy; }
+ /// @brief Get processor stack frame.
+
HAL::StackFrame* ProcessorCore::StackFrame() noexcept
{
MUST_PASS(m_Stack);
@@ -47,6 +51,8 @@ namespace hCore
ProcessorCore::operator bool() { return m_Stack; }
+ /// @brief Wakeup the processor.
+
void ProcessorCore::Wake(const bool wakeup) noexcept
{
m_Wakeup = wakeup;
@@ -111,9 +117,11 @@ namespace hCore
m_ThreadList[idx].Leak().Leak().Busy(true);
- bool ret = rt_do_context_switch(rt_get_current_context(), stack) == 0;
+ bool ret = rt_do_context_switch(rt_get_current_context(), stack) == 0;
m_ThreadList[idx].Leak().Leak().Busy(false);
+
+ return ret;
}
return false;
diff --git a/Private/html/hCore::CWindowLookAndFeel.html b/Private/html/hCore::CWindowLookAndFeel.html
deleted file mode 100644
index 36ff1dc6..00000000
--- a/Private/html/hCore::CWindowLookAndFeel.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<title>
- hCore::CWindowLookAndFeel - hCore documentation.
-</title>
-
-<h1>
- hCore::CWindowLookAndFeel
-</h1>
-
-<ul>
- <li>CWindowLookAndFeel::CWindowLookAndFeel()</li>
- <li>CWindowLookAndFeel::~CWindowLookAndFeel()</li>
-
- <li>virtual bool DrawButton(const char* label, Int32 x, Int32 y, Int32 w, Int32 h) = 0;</li>
- <li>virtual bool DrawButtonHovered(const char* label, Int32 x, Int32 y, Int32 w, Int32 h) = 0;</li>
- <li>virtual bool DrawRadio(const bool enable, Int32 x, Int32 y) = 0;</li>
-
- <li>virtual bool DrawCheckbox(const bool enable, Int32 x, Int32 y) = 0;</li>
- <li>virtual bool DrawTextBox(const char* content, Int32 x, Int32 y, Int32 w, Int32 h) = 0;</li>
- <li>virtual bool DrawWindow(const char* title, Int32 x, Int32 y, Int32 w, Int32 h) = 0;</li>
- <li>virtual bool DrawWindowFocused(const char* title, Int32 x, Int32 y, Int32 w, Int32 h) = 0;</li>
- <li>virtual bool DrawGroupBox(const char* title) = 0;</li>
- <li>virtual bool DrawCursor(Int32 x, Int32 y, Int32 type) = 0;</li>
-</ul>
diff --git a/Private/makefile b/Private/makefile
index 558811a2..aa0631b1 100644
--- a/Private/makefile
+++ b/Private/makefile
@@ -1,6 +1,6 @@
CC = x86_64-elf-gcc
LD = x86_64-elf-ld
-CCFLAGS = -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__hCore__ -I./ -I$(HOME)/
+CCFLAGS = -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__hCore__ -I../ -I./ -I$(HOME)/
ASM = nasm
ASMFLAGS = -f elf64