summaryrefslogtreecommitdiffstats
path: root/src/core/hle/svc.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-12-01 06:17:34 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-12-01 06:17:34 +0100
commitbec90495976ad5bca6feb514888880d755c52b1b (patch)
tree928497d2056d1c5ea719ac0cb359888b0df4d6bc /src/core/hle/svc.h
parentMerge pull request #1259 from lioncash/zero (diff)
parentKernel: Implement svcGetSystemInfo (diff)
downloadyuzu-bec90495976ad5bca6feb514888880d755c52b1b.tar
yuzu-bec90495976ad5bca6feb514888880d755c52b1b.tar.gz
yuzu-bec90495976ad5bca6feb514888880d755c52b1b.tar.bz2
yuzu-bec90495976ad5bca6feb514888880d755c52b1b.tar.lz
yuzu-bec90495976ad5bca6feb514888880d755c52b1b.tar.xz
yuzu-bec90495976ad5bca6feb514888880d755c52b1b.tar.zst
yuzu-bec90495976ad5bca6feb514888880d755c52b1b.zip
Diffstat (limited to 'src/core/hle/svc.h')
-rw-r--r--src/core/hle/svc.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/core/hle/svc.h b/src/core/hle/svc.h
index 12de9ffbe..4b9c71e06 100644
--- a/src/core/hle/svc.h
+++ b/src/core/hle/svc.h
@@ -41,6 +41,35 @@ enum ArbitrationType {
namespace SVC {
+/// Values accepted by svcGetSystemInfo's type parameter.
+enum class SystemInfoType {
+ /**
+ * Reports total used memory for all regions or a specific one, according to the extra
+ * parameter. See `SystemInfoMemUsageRegion`.
+ */
+ REGION_MEMORY_USAGE = 0,
+ /**
+ * Returns the memory usage for certain allocations done internally by the kernel.
+ */
+ KERNEL_ALLOCATED_PAGES = 2,
+ /**
+ * "This returns the total number of processes which were launched directly by the kernel.
+ * For the ARM11 NATIVE_FIRM kernel, this is 5, for processes sm, fs, pm, loader, and pxi."
+ */
+ KERNEL_SPAWNED_PIDS = 26,
+};
+
+/**
+ * Accepted by svcGetSystemInfo param with REGION_MEMORY_USAGE type. Selects a region to query
+ * memory usage of.
+ */
+enum class SystemInfoMemUsageRegion {
+ ALL = 0,
+ APPLICATION = 1,
+ SYSTEM = 2,
+ BASE = 3,
+};
+
void CallSVC(u32 immediate);
} // namespace