bunnei
|
10447d1f48
|
kernel: changed main thread priority to default, updated Kernel::Reschedule to use PrepareReschedule
|
2014-06-01 21:42:50 -04:00 |
|
bunnei
|
ba98e25e97
|
thread: updated Reschedule to sit at a synchronization barrier when no other threads are ready for execution
|
2014-06-01 10:35:42 -04:00 |
|
bunnei
|
f7cececc5c
|
event: added a hackish ability to set an event as "locked" to its current state, cleaned up some comments
|
2014-06-01 10:33:55 -04:00 |
|
bunnei
|
d8a2c8c657
|
mutex: fixed typo in ReleaseMutex
|
2014-05-29 23:31:01 -04:00 |
|
bunnei
|
d51c84dde2
|
event: added support for ClearEvent, fixed a bug with CreateEvent, fixed some comments
|
2014-05-29 20:00:44 -04:00 |
|
bunnei
|
2ed6652f10
|
mutex: added preliminary SyncRequest/WaitSynchronization, added some comments/assertions
|
2014-05-27 22:42:16 -04:00 |
|
bunnei
|
ea8627d536
|
event: fixed typos and updated CMakeLists
|
2014-05-27 22:14:38 -04:00 |
|
bunnei
|
beea6f054a
|
event: added SetEventLocked method to change status an events lock
|
2014-05-27 22:14:00 -04:00 |
|
bunnei
|
fd69fd0325
|
kernel: added event module to support creation of CTR "Event" objects
|
2014-05-27 20:16:13 -04:00 |
|
bunnei
|
d493d725ac
|
mutex: removed docstring comment that is no longer relevant
|
2014-05-26 22:49:11 -04:00 |
|
bunnei
|
93cd5a0691
|
mutex: added additional docstrings
|
2014-05-26 22:47:47 -04:00 |
|
bunnei
|
a432dc8f39
|
kernel: added WaitSynchronization method to Kernel::Object
|
2014-05-26 22:17:49 -04:00 |
|
bunnei
|
58a3adcdd2
|
kernel: updated SyncRequest to take boolean thread wait result as a parameter
|
2014-05-26 22:12:46 -04:00 |
|
bunnei
|
3d7693f75f
|
kernel: added enum for known CurrentThread and CurrentProcess handles
|
2014-05-26 21:56:23 -04:00 |
|
bunnei
|
d73d782ba7
|
kernel: add a SyncRequest method to KernelObject for use with svcSendSyncRequest
|
2014-05-26 21:01:27 -04:00 |
|
bunnei
|
b99ac2c3d6
|
thread: renamed "WaitCurThread" to "WaitCurrentThread", removed unused "reason" argument
|
2014-05-22 19:36:56 -04:00 |
|
bunnei
|
7c0b006076
|
thread: removed unused SwitchContext/Reschedule reason field, added missing arg parameter to SVC CreateThread
|
2014-05-22 19:32:45 -04:00 |
|
bunnei
|
d26f3d4c1f
|
kernel: refactored function naming to remove "__" prefix
|
2014-05-22 19:06:12 -04:00 |
|
bunnei
|
14bd37c5dc
|
thread: moved ThreadStatus/WaitType to header, added support for arg on CreateThread, added correct CPSR reset
|
2014-05-22 18:50:36 -04:00 |
|
bunnei
|
6a78be5930
|
thread: fixed bug where result of __NextThread was not being properly checked when NULL
|
2014-05-21 21:42:18 -04:00 |
|
bunnei
|
eb537c560a
|
mutex: refactored the interface to code to return a Mutex* handle
|
2014-05-20 23:23:58 -04:00 |
|
bunnei
|
978e1d4653
|
mutex: initial commit of HLE module
|
2014-05-20 23:03:45 -04:00 |
|
bunnei
|
1c5802c35a
|
kernel: fixed include, in general include "common.h" not "common_types.h"
|
2014-05-20 22:27:46 -04:00 |
|
bunnei
|
203541da11
|
thread: added correct lowest thread priority, added a thread priority check, and added some comments
|
2014-05-20 21:02:35 -04:00 |
|
bunnei
|
bed4e920fa
|
thread: exposed ResumeThreadFromWait function for use in other kernel modules
|
2014-05-20 21:00:10 -04:00 |
|
bunnei
|
75c6d2a8fa
|
thread: moved threading calls to the Kernel namespace
|
2014-05-20 19:37:46 -04:00 |
|
bunnei
|
49dc2ce8ac
|
ARM_Interface: added SaveContext and LoadContext functions for HLE thread switching
|
2014-05-20 18:50:16 -04:00 |
|
bunnei
|
143bba2045
|
renamed "syscall" module to "svc" (more accurate naming)
|
2014-05-20 18:28:38 -04:00 |
|
bunnei
|
f654a03f1f
|
thread: whitespace change - fixed * and & placement
|
2014-05-20 18:20:35 -04:00 |
|
bunnei
|
44336329ed
|
- created a Kernel namespace
- cleaned up Kernel code a bit (moved stuff into namespace, fixed whitespace issues)
- added handle types for all different CTROS handles
|
2014-05-20 18:13:25 -04:00 |
|
bunnei
|
f5a119a367
|
thread: added declaration for __KernelReschedule to be used by syscall module
|
2014-05-19 22:19:48 -04:00 |
|
bunnei
|
eab6fd01d7
|
- updated service(s) to be KernelObject's
- various cleanups
|
2014-05-18 21:43:29 -04:00 |
|
bunnei
|
772abad778
|
- moved Handle/Result definitions to kernel.h
- added ResetType enum
|
2014-05-18 18:12:29 -04:00 |
|
bunnei
|
09b8e8fb6a
|
changed a comment
|
2014-05-17 13:47:55 -04:00 |
|
bunnei
|
14ae026386
|
- added enum ThreadProcessorId
- reorganized some kernel thread functions
- added placeholder __KernelWaitThread_Synchronization function
|
2014-05-17 00:56:00 -04:00 |
|
bunnei
|
7cdb705059
|
- replaced KERNELOBJECT_MAX_NAME_LENGTH with KERNEL_MAX_NAME_LENGTH
- added KERNEL_DEFAULT_STACK_SIZE definition (0x4000)
|
2014-05-16 23:48:15 -04:00 |
|
bunnei
|
940330c6e1
|
completely gutted/refactored threading code to be simpler
|
2014-05-15 18:27:08 -04:00 |
|
bunnei
|
a7cc430aa4
|
changed "UID" to "Handle" to be a little more consistent with CTR naming
|
2014-05-15 18:26:28 -04:00 |
|
bunnei
|
b99a5da65b
|
- added helper function for __KernelCreateThread
- added __KernelSwitchToThread for enabling a thread
- added __KernelRotateThreadReadyQueue
|
2014-05-14 20:50:30 -04:00 |
|
bunnei
|
9f5588725c
|
changed primary thread priority to 0x30 - this is typical, not 0x31
|
2014-05-14 20:49:27 -04:00 |
|
bunnei
|
0de78eb3c4
|
fixed thread reset to not set stack address
|
2014-05-13 23:18:28 -04:00 |
|
bunnei
|
7d078189da
|
various cleanups / remove unused code
|
2014-05-13 22:29:31 -04:00 |
|
bunnei
|
3838d46b90
|
added a bunch of threading code, recycled from PPSSPP, with lots of hacks in for 3DS... doesn't really do much yet. Just a jumping off point
|
2014-05-13 22:00:11 -04:00 |
|
bunnei
|
1583d2b6f3
|
- added __KernelLoadExec function
- fixed some logging
|
2014-05-13 21:57:12 -04:00 |
|
bunnei
|
6b264518a5
|
added initial kernel/thread modules
|
2014-05-09 22:11:18 -04:00 |
|