diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-03-05 15:48:30 +0000 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-03-05 15:48:30 +0000 |
| commit | f7644047cab4827d2ea8d8e33db8f08b640e21d8 (patch) | |
| tree | cd4996aa33a5e499a78bf1f22470d570abacb505 /Private/Source | |
| parent | 357e7a82bc85acee0ed05c6dc0fd870990859df9 (diff) | |
Update 3 files
- /Private/NewKit/UserHeap.hpp
- /Private/Source/UserHeap.cxx
- /Private/Source/URL.cxx
Diffstat (limited to 'Private/Source')
| -rw-r--r-- | Private/Source/URL.cxx | 6 | ||||
| -rw-r--r-- | Private/Source/UserHeap.cxx | 11 |
2 files changed, 14 insertions, 3 deletions
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. |
