diff options
author | bunnei <ericbunnie@gmail.com> | 2014-05-23 04:57:45 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-05-23 04:57:45 +0200 |
commit | 32c314c99290a52f1f870ecf8c677e3792ed09c4 (patch) | |
tree | 1cea62bc320d51ebb217e7c361ae10b65b71dd45 /src/core/hle/svc.h | |
parent | Merge branch 'master' of https://github.com/citra-emu/citra (diff) | |
parent | core: added Kernel::Reschedule() call to check for thread changes, shortened delay time to 100 instructions (diff) | |
download | yuzu-32c314c99290a52f1f870ecf8c677e3792ed09c4.tar yuzu-32c314c99290a52f1f870ecf8c677e3792ed09c4.tar.gz yuzu-32c314c99290a52f1f870ecf8c677e3792ed09c4.tar.bz2 yuzu-32c314c99290a52f1f870ecf8c677e3792ed09c4.tar.lz yuzu-32c314c99290a52f1f870ecf8c677e3792ed09c4.tar.xz yuzu-32c314c99290a52f1f870ecf8c677e3792ed09c4.tar.zst yuzu-32c314c99290a52f1f870ecf8c677e3792ed09c4.zip |
Diffstat (limited to 'src/core/hle/svc.h')
-rw-r--r-- | src/core/hle/svc.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/core/hle/svc.h b/src/core/hle/svc.h new file mode 100644 index 000000000..5c35977d1 --- /dev/null +++ b/src/core/hle/svc.h @@ -0,0 +1,48 @@ +// Copyright 2014 Citra Emulator Project +// Licensed under GPLv2 +// Refer to the license.txt file included. + +#pragma once + +#include "common/common_types.h" + +//////////////////////////////////////////////////////////////////////////////////////////////////// +// SVC types + +struct MemoryInfo { + u32 base_address; + u32 size; + u32 permission; + u32 state; +}; + +struct PageInfo { + u32 flags; +}; + +struct ThreadContext { + u32 cpu_registers[13]; + u32 sp; + u32 lr; + u32 pc; + u32 cpsr; + u32 fpu_registers[32]; + u32 fpscr; + u32 fpexc; +}; + +enum ResetType { + RESETTYPE_ONESHOT, + RESETTYPE_STICKY, + RESETTYPE_PULSE, + RESETTYPE_MAX_BIT = (1u << 31), +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////// +// Namespace SVC + +namespace SVC { + +void Register(); + +} // namespace |