summaryrefslogtreecommitdiffhomepage
path: root/public
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-30 14:42:35 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-30 14:42:35 +0200
commit86b89793dcaf290206faeb7fe3100dd0a5f71d1d (patch)
tree7ebb5128173f7b48b1e8629f6be031e62b6a5427 /public
parent0e92d4841f0d1b6a5f2e1b093d9d0b6864dfac93 (diff)
global: architectural changes, see commit details.
refactor: Refactor libSystem, user frameworks, and preparing for OpenMSG. feat: Jail info client structure (libSystem) feat: Document what the RTime is doing starting from line 504. feat: use `int 50` instead of `syscall` for now. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'public')
-rw-r--r--public/frameworks/CoreFoundation.fwrk/CoreFoundation.json2
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Array.h2
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Foundation.h2
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Property.h2
-rw-r--r--public/frameworks/CoreFoundation.fwrk/headers/Ref.h2
-rw-r--r--public/frameworks/DiskImage.fwrk/DiskImage.json2
-rw-r--r--public/frameworks/DiskImage.fwrk/headers/DiskImage.h2
-rw-r--r--public/frameworks/KernelTest.fwrk/KernelTest.json2
-rw-r--r--public/frameworks/OpenMSG.fwrk/.keep0
-rw-r--r--public/frameworks/OpenMSG.fwrk/OpenMSG.json19
-rw-r--r--public/frameworks/OpenMSG.fwrk/headers/.keep0
-rw-r--r--public/frameworks/OpenMSG.fwrk/src/.keep0
-rw-r--r--public/frameworks/OpenMSG.fwrk/src/DylibMain.cc5
-rw-r--r--public/frameworks/OpenMSG.fwrk/xml/.keep0
-rw-r--r--public/frameworks/OpenMSG.fwrk/xml/app.xml2
-rw-r--r--public/tools/cc/src/CommandLine.cc2
-rw-r--r--public/tools/ld.dyn/src/CommandLine.cc2
-rw-r--r--public/tools/ld.fwrk/src/CommandLine.cc2
-rw-r--r--public/tools/manual/src/CommandLine.cc2
-rw-r--r--public/tools/mgmt/src/CommandLine.cc2
-rw-r--r--public/tools/mk.fwrk/Common.h2
-rw-r--r--public/tools/mk.fwrk/src/CommandLine.cc2
-rw-r--r--public/tools/mk.hefs/src/CommandLine.cc2
-rw-r--r--public/tools/mk.nefs/src/CommandLine.cc2
-rw-r--r--public/tools/open/src/CommandLine.cc2
-rw-r--r--public/tools/ping/src/CommandLine.cc2
26 files changed, 45 insertions, 19 deletions
diff --git a/public/frameworks/CoreFoundation.fwrk/CoreFoundation.json b/public/frameworks/CoreFoundation.fwrk/CoreFoundation.json
index a208f57a..076b35ae 100644
--- a/public/frameworks/CoreFoundation.fwrk/CoreFoundation.json
+++ b/public/frameworks/CoreFoundation.fwrk/CoreFoundation.json
@@ -3,7 +3,7 @@
"compiler_std": "c++20",
"headers_path": ["../", "./", "../../../dev", "../../../dev/kernel"],
"sources_path": ["src/*.cc"],
- "output_name": "./dist/libCoreFoundation.dylib",
+ "output_name": "./dist/libCoreFoundation.fwrk.dylib",
"compiler_flags": [
"-ffreestanding",
"-shared",
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Array.h b/public/frameworks/CoreFoundation.fwrk/headers/Array.h
index 55e75e5e..d9c528d9 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Array.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Array.h
@@ -6,7 +6,7 @@
#pragma once
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
namespace CF {
template <typename T, SizeT N>
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h b/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h
index 1f295ea5..500ad544 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Foundation.h
@@ -10,7 +10,7 @@
#pragma once
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
namespace CF {
class CFString;
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Property.h b/public/frameworks/CoreFoundation.fwrk/headers/Property.h
index 4da173c7..5210bd95 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Property.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Property.h
@@ -8,7 +8,7 @@
#define _PROPS_H
#include <CoreFoundation.fwrk/headers/Ref.h>
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
#define kMaxPropLen (256U)
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
index cb72a034..87005db1 100644
--- a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
+++ b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h
@@ -9,7 +9,7 @@
#define _REF_H_
#include <CoreFoundation.fwrk/headers/Object.h>
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
namespace CF {
template <typename T>
diff --git a/public/frameworks/DiskImage.fwrk/DiskImage.json b/public/frameworks/DiskImage.fwrk/DiskImage.json
index aaff409c..16c538e5 100644
--- a/public/frameworks/DiskImage.fwrk/DiskImage.json
+++ b/public/frameworks/DiskImage.fwrk/DiskImage.json
@@ -3,7 +3,7 @@
"compiler_std": "c++20",
"headers_path": ["../", "./", "../../../dev", "../../../dev/kernel"],
"sources_path": ["src/*.cc"],
- "output_name": "./dist/libDiskImage.dylib",
+ "output_name": "./dist/libDiskImage.fwrk.dylib",
"compiler_flags": [
"-ffreestanding",
"-shared",
diff --git a/public/frameworks/DiskImage.fwrk/headers/DiskImage.h b/public/frameworks/DiskImage.fwrk/headers/DiskImage.h
index efc21253..53348f3e 100644
--- a/public/frameworks/DiskImage.fwrk/headers/DiskImage.h
+++ b/public/frameworks/DiskImage.fwrk/headers/DiskImage.h
@@ -9,7 +9,7 @@
#pragma once
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
#ifndef __DISK_IMAGE_CDROM__
#define kDISectorSz (512)
diff --git a/public/frameworks/KernelTest.fwrk/KernelTest.json b/public/frameworks/KernelTest.fwrk/KernelTest.json
index aa70db30..b8c322b6 100644
--- a/public/frameworks/KernelTest.fwrk/KernelTest.json
+++ b/public/frameworks/KernelTest.fwrk/KernelTest.json
@@ -3,7 +3,7 @@
"compiler_std": "c++20",
"headers_path": ["../", "./", "../../../dev", "../../../dev/kernel"],
"sources_path": ["src/*.cc"],
- "output_name": "./dist/libKernelTest.dylib",
+ "output_name": "./dist/libKernelTest.fwrk.dylib",
"compiler_flags": [
"-ffreestanding",
"-shared",
diff --git a/public/frameworks/OpenMSG.fwrk/.keep b/public/frameworks/OpenMSG.fwrk/.keep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/public/frameworks/OpenMSG.fwrk/.keep
diff --git a/public/frameworks/OpenMSG.fwrk/OpenMSG.json b/public/frameworks/OpenMSG.fwrk/OpenMSG.json
new file mode 100644
index 00000000..4bda8798
--- /dev/null
+++ b/public/frameworks/OpenMSG.fwrk/OpenMSG.json
@@ -0,0 +1,19 @@
+{
+ "compiler_path": "clang++",
+ "compiler_std": "c++20",
+ "headers_path": [
+ "./",
+ "../../../dev/kernel",
+ "../../../public/frameworks/",
+ "../../../dev/",
+ "./"
+ ],
+ "sources_path": [],
+ "output_name": "./dist/libOpenMSG.fwrk.dylib",
+ "cpp_macros": [
+ "kSampleFWVersion=0x0100",
+ "kSampleFWVersionHighest=0x0100",
+ "kSampleFWVersionLowest=0x0100",
+ "__NE_SDK__"
+ ]
+} \ No newline at end of file
diff --git a/public/frameworks/OpenMSG.fwrk/headers/.keep b/public/frameworks/OpenMSG.fwrk/headers/.keep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/public/frameworks/OpenMSG.fwrk/headers/.keep
diff --git a/public/frameworks/OpenMSG.fwrk/src/.keep b/public/frameworks/OpenMSG.fwrk/src/.keep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/public/frameworks/OpenMSG.fwrk/src/.keep
diff --git a/public/frameworks/OpenMSG.fwrk/src/DylibMain.cc b/public/frameworks/OpenMSG.fwrk/src/DylibMain.cc
new file mode 100644
index 00000000..814132e3
--- /dev/null
+++ b/public/frameworks/OpenMSG.fwrk/src/DylibMain.cc
@@ -0,0 +1,5 @@
+#include <libSystem/SystemKit/System.h>
+
+SInt32 _DylibAttach(SInt32 argc, Char* argv[]) {
+ return EXIT_FAILURE;
+} \ No newline at end of file
diff --git a/public/frameworks/OpenMSG.fwrk/xml/.keep b/public/frameworks/OpenMSG.fwrk/xml/.keep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/public/frameworks/OpenMSG.fwrk/xml/.keep
diff --git a/public/frameworks/OpenMSG.fwrk/xml/app.xml b/public/frameworks/OpenMSG.fwrk/xml/app.xml
new file mode 100644
index 00000000..6a46e598
--- /dev/null
+++ b/public/frameworks/OpenMSG.fwrk/xml/app.xml
@@ -0,0 +1,2 @@
+<PropertyList>
+<PLEntry Type="CFString" Name="LibraryName" Len="12" Value="OpenMSG.fwrk" /></PropertyList> \ No newline at end of file
diff --git a/public/tools/cc/src/CommandLine.cc b/public/tools/cc/src/CommandLine.cc
index f1c72b64..62757c43 100644
--- a/public/tools/cc/src/CommandLine.cc
+++ b/public/tools/cc/src/CommandLine.cc
@@ -4,7 +4,7 @@
* Copyright (c) 2024-2025 Amlal El Mahrouss
*/
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
/// @brief Placeholder program.
diff --git a/public/tools/ld.dyn/src/CommandLine.cc b/public/tools/ld.dyn/src/CommandLine.cc
index 70a0dbd9..e64e7837 100644
--- a/public/tools/ld.dyn/src/CommandLine.cc
+++ b/public/tools/ld.dyn/src/CommandLine.cc
@@ -4,7 +4,7 @@
* Copyright (c) 2024-2025 Amlal El Mahrouss
*/
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
/// @brief Library loader.
diff --git a/public/tools/ld.fwrk/src/CommandLine.cc b/public/tools/ld.fwrk/src/CommandLine.cc
index 853a4ef7..323e58c7 100644
--- a/public/tools/ld.fwrk/src/CommandLine.cc
+++ b/public/tools/ld.fwrk/src/CommandLine.cc
@@ -4,7 +4,7 @@
* Copyright (c) 2024-2025 Amlal El Mahrouss
*/
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
/// @brief This program loads a code framework into Kernel's memory.
diff --git a/public/tools/manual/src/CommandLine.cc b/public/tools/manual/src/CommandLine.cc
index 68594c09..8c75d565 100644
--- a/public/tools/manual/src/CommandLine.cc
+++ b/public/tools/manual/src/CommandLine.cc
@@ -1,4 +1,4 @@
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
SInt32 _NeMain(SInt32 argc, Char* argv[]) {
LIBSYS_UNUSED(argc);
diff --git a/public/tools/mgmt/src/CommandLine.cc b/public/tools/mgmt/src/CommandLine.cc
index f3840d01..6015988e 100644
--- a/public/tools/mgmt/src/CommandLine.cc
+++ b/public/tools/mgmt/src/CommandLine.cc
@@ -1,4 +1,4 @@
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
SInt32 _NeMain(SInt32 argc, Char* argv[]) {
return EXIT_FAILURE;
diff --git a/public/tools/mk.fwrk/Common.h b/public/tools/mk.fwrk/Common.h
index 89e52471..8e434043 100644
--- a/public/tools/mk.fwrk/Common.h
+++ b/public/tools/mk.fwrk/Common.h
@@ -7,6 +7,6 @@
#define APPS_COMMON_H
#include <CoreFoundation.fwrk/headers/Foundation.h>
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
#endif // APPS_COMMON_H
diff --git a/public/tools/mk.fwrk/src/CommandLine.cc b/public/tools/mk.fwrk/src/CommandLine.cc
index 423dc12f..87945ddc 100644
--- a/public/tools/mk.fwrk/src/CommandLine.cc
+++ b/public/tools/mk.fwrk/src/CommandLine.cc
@@ -7,7 +7,7 @@
#include <Framework.h>
#include <Steps.h>
-#include <libSystem/Err.h>
+#include <libSystem/SystemKit/Err.h>
#include <CoreFoundation.fwrk/headers/Array.h>
diff --git a/public/tools/mk.hefs/src/CommandLine.cc b/public/tools/mk.hefs/src/CommandLine.cc
index 0b38386a..91a3527d 100644
--- a/public/tools/mk.hefs/src/CommandLine.cc
+++ b/public/tools/mk.hefs/src/CommandLine.cc
@@ -4,7 +4,7 @@
* Copyright (c) 2025 Amlal El Mahrouss
*/
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
/// @brief Placeholder program.
diff --git a/public/tools/mk.nefs/src/CommandLine.cc b/public/tools/mk.nefs/src/CommandLine.cc
index 0b38386a..91a3527d 100644
--- a/public/tools/mk.nefs/src/CommandLine.cc
+++ b/public/tools/mk.nefs/src/CommandLine.cc
@@ -4,7 +4,7 @@
* Copyright (c) 2025 Amlal El Mahrouss
*/
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
/// @brief Placeholder program.
diff --git a/public/tools/open/src/CommandLine.cc b/public/tools/open/src/CommandLine.cc
index 6fa4e2f2..e02fcebc 100644
--- a/public/tools/open/src/CommandLine.cc
+++ b/public/tools/open/src/CommandLine.cc
@@ -4,7 +4,7 @@
* Copyright (c) 2024-2025 Amlal El Mahrouss
*/
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
/// @brief This program opens an application from **OPEN_APP_BASE_PATH**
/// @file CommandLine.cc
diff --git a/public/tools/ping/src/CommandLine.cc b/public/tools/ping/src/CommandLine.cc
index 580d7973..a9ba177a 100644
--- a/public/tools/ping/src/CommandLine.cc
+++ b/public/tools/ping/src/CommandLine.cc
@@ -1,4 +1,4 @@
-#include <libSystem/System.h>
+#include <libSystem/SystemKit/System.h>
SInt32 _NeMain(SInt32 argc, Char* argv[]) {
LIBSYS_UNUSED(argc);