summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/SystemKit
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-01-18 09:44:38 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-01-18 09:44:38 +0100
commita45807be431556c175ac8494cfcc6b7572ac6686 (patch)
tree7533b378db00b84d1e17d2991d7714bb114c98b4 /dev/Kernel/SystemKit
parent68a2172e20ebf34098de71464668239d9064eeb8 (diff)
ADD: SwapDisk class has been patched and FileStream class too.
ADD: Patch amd64 makefile, make sure to include src/System/ in build. Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/SystemKit')
-rw-r--r--dev/Kernel/SystemKit/SwapDisk.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/dev/Kernel/SystemKit/SwapDisk.h b/dev/Kernel/SystemKit/SwapDisk.h
index 06d613dc..07d3cb73 100644
--- a/dev/Kernel/SystemKit/SwapDisk.h
+++ b/dev/Kernel/SystemKit/SwapDisk.h
@@ -1,7 +1,7 @@
/* -------------------------------------------
- Copyright (C) 2024, t& Labs, all rights reserved.
+ Copyright (C) 2024-2025 MediaSwirl Labs, all rights reserved.
------------------------------------------- */
@@ -10,8 +10,8 @@
#include <NewKit/Defines.h>
#include <CompilerKit/CompilerKit.h>
-#define kSwapMgrBlockMaxSize (mib_cast(16))
-#define kSwapMgrPageFile "/System/pagefile.sys"
+#define kSwapBlockMaxSize (mib_cast(16))
+#define kSwapPageFile "/boot/pagefile.sys"
/// @file SwapDisk.h
/// @brief Virtual memory swap disk.
@@ -19,15 +19,15 @@
namespace Kernel
{
/// @brief This class is a disk swap delegate for any data. available as a syscall too.
- class SwapDiskDelegate final
+ class SwapDisk final
{
public:
- explicit SwapDiskDelegate() = default;
- ~SwapDiskDelegate() = default;
+ explicit SwapDisk() = default;
+ ~SwapDisk() = default;
- ZKA_COPY_DEFAULT(SwapDiskDelegate);
+ ZKA_COPY_DEFAULT(SwapDisk);
BOOL Write(const Char* fork_name, const SizeT fork_name_len, VoidPtr data, const SizeT data_len);
VoidPtr Read(const Char* fork_name, const SizeT fork_name_len, const SizeT data_len);
};
-} // namespace Kernel \ No newline at end of file
+} // namespace Kernel