From 480906fe1b31a8830aec80fbea04ec941894003f Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 2 Jan 2018 20:40:30 -0500 Subject: hle: Move SVC code to kernel namespace. --- src/core/hle/kernel/svc.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/core/hle/kernel/svc.h (limited to 'src/core/hle/kernel/svc.h') diff --git a/src/core/hle/kernel/svc.h b/src/core/hle/kernel/svc.h new file mode 100644 index 000000000..b0265b6c8 --- /dev/null +++ b/src/core/hle/kernel/svc.h @@ -0,0 +1,38 @@ +// Copyright 2018 Citra 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 { + +struct MemoryInfo { + u64 base_address; + u64 size; + u32 type; + u32 attributes; + u32 permission; +}; + +struct PageInfo { + u64 flags; +}; + +/// Values accepted by svcGetInfo +enum class GetInfoType : u64 { + // 1.0.0+ + TotalMemoryUsage = 6, + TotalHeapUsage = 7, + RandomEntropy = 11, + // 2.0.0+ + AddressSpaceBaseAddr = 12, + AddressSpaceSize = 13, + NewMapRegionBaseAddr = 14, + NewMapRegionSize = 15, +}; + +void CallSVC(u32 immediate); + +} // namespace Kernel -- cgit v1.2.3