diff options
author | bunnei <bunneidev@gmail.com> | 2014-05-26 20:52:00 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-05-26 20:52:00 -0400 |
commit | 6448c2f30062c085330ff26a4812c9a91c7b492c (patch) | |
tree | 386e32cf3ec053491fb8dfd8459a1c92553241d9 /src/core/hle/svc.h | |
parent | 74f972651566bdd1266115fc9dd9a1b652f8dbec (diff) | |
parent | 0aa582bf89c3e3e479540b706511590636870912 (diff) |
Merge pull request #9 from bunnei/master
Add initial kernel HLE, includes thread creation and context switching
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 |