aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Kernel/KernelConstants.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-05-04 00:41:29 -0300
committerGitHub <noreply@github.com>2020-05-04 13:41:29 +1000
commit15d1cc806b1b978bab83d8bb426a124d9f0f788c (patch)
tree4fd10fdd11412bafcf3022e7cc4eb21179eef1b1 /Ryujinx.HLE/HOS/Kernel/KernelConstants.cs
parentcd48576f5846aa89a36bfc833e9de5dde9627aed (diff)
Move kernel state out of the Horizon class (#1107)
* Move kernel state from Horizon to KernelContext * Merge syscalls partial classes, split 32 and 64-bit variants * Sort usings
Diffstat (limited to 'Ryujinx.HLE/HOS/Kernel/KernelConstants.cs')
-rw-r--r--Ryujinx.HLE/HOS/Kernel/KernelConstants.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Kernel/KernelConstants.cs b/Ryujinx.HLE/HOS/Kernel/KernelConstants.cs
new file mode 100644
index 00000000..4b5d3a32
--- /dev/null
+++ b/Ryujinx.HLE/HOS/Kernel/KernelConstants.cs
@@ -0,0 +1,16 @@
+using Ryujinx.HLE.HOS.Kernel.Memory;
+
+namespace Ryujinx.HLE.HOS.Kernel
+{
+ static class KernelConstants
+ {
+ public const int InitialKipId = 1;
+ public const int InitialProcessId = 0x51;
+
+ public const int MemoryBlockAllocatorSize = 0x2710;
+
+ public const ulong UserSlabHeapBase = DramMemoryMap.SlabHeapBase;
+ public const ulong UserSlabHeapItemSize = KMemoryManager.PageSize;
+ public const ulong UserSlabHeapSize = 0x3de000;
+ }
+}