summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_memory_region_type.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-02-13 10:07:23 +0100
committerbunnei <bunneidev@gmail.com>2021-03-21 22:45:02 +0100
commit541b4353e4a85a1f10c53d643ea48b8e31363a62 (patch)
tree4546b14777c69cf74bbbdedfa50dfd904d8e8f59 /src/core/hle/kernel/k_memory_region_type.h
parenthle: kernel: Move KMemoryRegion to its own module and update. (diff)
downloadyuzu-541b4353e4a85a1f10c53d643ea48b8e31363a62.tar
yuzu-541b4353e4a85a1f10c53d643ea48b8e31363a62.tar.gz
yuzu-541b4353e4a85a1f10c53d643ea48b8e31363a62.tar.bz2
yuzu-541b4353e4a85a1f10c53d643ea48b8e31363a62.tar.lz
yuzu-541b4353e4a85a1f10c53d643ea48b8e31363a62.tar.xz
yuzu-541b4353e4a85a1f10c53d643ea48b8e31363a62.tar.zst
yuzu-541b4353e4a85a1f10c53d643ea48b8e31363a62.zip
Diffstat (limited to 'src/core/hle/kernel/k_memory_region_type.h')
-rw-r--r--src/core/hle/kernel/k_memory_region_type.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_memory_region_type.h b/src/core/hle/kernel/k_memory_region_type.h
new file mode 100644
index 000000000..6fb5abde9
--- /dev/null
+++ b/src/core/hle/kernel/k_memory_region_type.h
@@ -0,0 +1,22 @@
+// Copyright 2021 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "common/common_types.h"
+
+namespace Kernel {
+
+enum class KMemoryRegionType : u32 {};
+
+enum class KMemoryRegionAttr : typename std::underlying_type<KMemoryRegionType>::type {
+ CarveoutProtected = 0x04000000,
+ DidKernelMap = 0x08000000,
+ ShouldKernelMap = 0x10000000,
+ UserReadOnly = 0x20000000,
+ NoUserMap = 0x40000000,
+ LinearMapped = 0x80000000,
+};
+
+} // namespace Kernel