summaryrefslogtreecommitdiffhomepage
path: root/Private
diff options
context:
space:
mode:
Diffstat (limited to 'Private')
-rw-r--r--Private/NewKit/UserHeap.hpp7
-rw-r--r--Private/Source/URL.cxx6
-rw-r--r--Private/Source/UserHeap.cxx11
3 files changed, 14 insertions, 10 deletions
diff --git a/Private/NewKit/UserHeap.hpp b/Private/NewKit/UserHeap.hpp
index d69dfe42..1bf1997f 100644
--- a/Private/NewKit/UserHeap.hpp
+++ b/Private/NewKit/UserHeap.hpp
@@ -28,13 +28,6 @@ enum {
kPoolRw = 0x8,
};
-struct HeapHeader final {
- UInt32 Magic;
- Int32 Flags;
- Boolean Free;
- UIntPtr Pad;
-};
-
VoidPtr ke_new_heap(Int32 flags);
Int32 ke_free_heap(voidPtr pointer);
} // namespace HCore
diff --git a/Private/Source/URL.cxx b/Private/Source/URL.cxx
index ae88678a..8c569f87 100644
--- a/Private/Source/URL.cxx
+++ b/Private/Source/URL.cxx
@@ -20,12 +20,12 @@ constexpr const char *kURLProtocols[] = {
"http", // http without the secure
"file", // filesystem protocol
"ftp", // file transfer protocol
- "params", // system settings
- "rsh", // remote shell (gui)
+ "krnlconf", // system settings
+ "guisys", // remote shell (gui)
};
constexpr const int kUrlOutSz = 3; //! ://
-constexpr const int kProtosCount = 8;
+constexpr const int kProtosCount = 6;
constexpr const int kRangeSz = 4096;
static ErrorOr<StringView> url_extract_location(const char *url) {
diff --git a/Private/Source/UserHeap.cxx b/Private/Source/UserHeap.cxx
index 35dfc429..b9015920 100644
--- a/Private/Source/UserHeap.cxx
+++ b/Private/Source/UserHeap.cxx
@@ -15,6 +15,17 @@
namespace HCore {
/**
+ * @brief Process Heap Header
+ * @note Allocated per process, do not allocate twice!
+*/
+struct HeapHeader final {
+ UInt32 Magic;
+ Int32 Flags;
+ Boolean Free;
+ UIntPtr Pad;
+};
+
+/**
* @brief User Heap Manager class, takes care of allocating the process pools.
* @note This rely on Virtual Memory! Consider adding good vmem support when
* @note porting to a new arch.