summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar bunnei2014-05-09 22:11:18 -0400
committerGravatar bunnei2014-05-09 22:11:18 -0400
commit6b264518a50ce21cb1be55ff3eac4e1c85582cfe (patch)
tree036ae3be74768165fbb4ee24db4cdba4ffadec2e /src/core/hle/kernel/thread.h
parentadded kernel logger to common (diff)
downloadyuzu-6b264518a50ce21cb1be55ff3eac4e1c85582cfe.tar.gz
yuzu-6b264518a50ce21cb1be55ff3eac4e1c85582cfe.tar.xz
yuzu-6b264518a50ce21cb1be55ff3eac4e1c85582cfe.zip
added initial kernel/thread modules
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
new file mode 100644
index 000000000..c3cdca31f
--- /dev/null
+++ b/src/core/hle/kernel/thread.h
@@ -0,0 +1,36 @@
1// Copyright 2014 Citra Emulator Project / PPSSPP Project
2// Licensed under GPLv2
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include "common/common_types.h"
8
9enum ThreadStatus {
10 THREADSTATUS_RUNNING = 1,
11 THREADSTATUS_READY = 2,
12 THREADSTATUS_WAIT = 4,
13 THREADSTATUS_SUSPEND = 8,
14 THREADSTATUS_DORMANT = 16,
15 THREADSTATUS_DEAD = 32,
16
17 THREADSTATUS_WAITSUSPEND = THREADSTATUS_WAIT | THREADSTATUS_SUSPEND
18};
19
20struct ThreadContext {
21 void reset();
22
23 u32 reg[16];
24 u32 cpsr;
25 u32 pc;
26};
27
28void __KernelThreadingInit();
29void __KernelThreadingShutdown();
30
31//const char *__KernelGetThreadName(SceUID threadID);
32//
33//void __KernelSaveContext(ThreadContext *ctx);
34//void __KernelLoadContext(ThreadContext *ctx);
35
36//void __KernelSwitchContext(Thread *target, const char *reason); \ No newline at end of file