bunnei
7b7a435094
GSP: Fixed to use real shared memory object, various cleanups.
- Previously, used a hard-coded shared memory handle of 0x10002000 (as used by libctru homebrew)
GSP: Added name for shared memory.
GSP: Cleaned up assertion message.
12 years ago
bunnei
8957622d10
SVC: Renamed all function wrapper templates to Wrap, moved to HLE namespace.
12 years ago
bunnei
862db811f0
SVC: Cleaned up function wrappers to pass in correct argument types.
12 years ago
bunnei
4d6c96b7d8
SVC: Moved declaration of "wait" variable in SendSyncRequest for improved readability.
12 years ago
bunnei
c95972275e
HLE: Updated all uses of NULL to nullptr (to be C++11 compliant)
12 years ago
bunnei
d7363322c7
HLE: Updated various handle debug assertions to be more clear.
12 years ago
bunnei
f5c7c15434
Kernel: Added real support for thread and event blocking
- SVC: Added ExitThread support
- SVC: Added SignalEvent support
- Thread: Added WAITTYPE_EVENT for waiting threads for event signals
- Thread: Added support for blocking on other threads to finish (e.g. Thread::Join)
- Thread: Added debug function for printing current threads ready for execution
- Thread: Removed hack/broken thread ready state code from Kernel::Reschedule
- Mutex: Moved WaitCurrentThread from SVC to Mutex::WaitSynchronization
- Event: Added support for blocking threads on event signalling
Kernel: Added missing algorithm #include for use of std::find on non-Windows platforms.
12 years ago
bunnei
477b0caca4
svc: updated WaitSynchronizationN to properly use first pointer argument
12 years ago
bunnei
4819e9a60f
svc: changed DuplicateHandle log message from "error" to "debug"
12 years ago
bunnei
3fb31fbc57
svc: added GetThreadPriority and SetThreadPriority, added (incomplete) DuplicateHandle support
12 years ago
bunnei
10447d1f48
kernel: changed main thread priority to default, updated Kernel::Reschedule to use PrepareReschedule
12 years ago
bunnei
15c7d81706
svc: cleaned up function_wrappers, updated various SVCs to make use of pointer arguments
12 years ago
bunnei
f2f638492b
svc: updated waitSychronization to not overwrite handle on return, added stub for SleepThread (does nothing)
12 years ago
bunnei
c404d22036
hle: cleaned up log messages
12 years ago
bunnei
b0bad47c0e
svc: updated OutputDebugString to use OS_LOG
12 years ago
bunnei
6d267142ad
svc: changed unimplemented SVC log messages from "debug" messages to "error" messages
12 years ago
bunnei
58af0da792
svc: added svcClearEvent, stubbed function for svcArbitrateAddress, and various fixes
- force kernel reschedule after svcWaitSynchronization
- fixed some bugs with passing in pointer arguments
- cleaned up some comments and log messages
12 years ago
bunnei
47e781e80a
svc: implemented WaitSynchronization1, WaitSynchronizationN, and CreateEvent
12 years ago
bunnei
58a3adcdd2
kernel: updated SyncRequest to take boolean thread wait result as a parameter
12 years ago
bunnei
6e51c56fe4
svc: added some assertions
12 years ago
bunnei
9f7ed2d027
svc: changed SendSyncRequest to use Kernel::Object SyncRequest (instead of just service Interface class)
12 years ago
bunnei
15d2ab1b33
svc: added stub for DuplicateHandle SVC call
12 years ago
bunnei
f8a98ab022
svc: added a check to ensure that a service was implemented before attempting to connect to its port
12 years ago
bunnei
b99ac2c3d6
thread: renamed "WaitCurThread" to "WaitCurrentThread", removed unused "reason" argument
12 years ago
bunnei
7c0b006076
thread: removed unused SwitchContext/Reschedule reason field, added missing arg parameter to SVC CreateThread
12 years ago
bunnei
06e3c3d55a
svc: added Kernel::Reschedule to svc WaitSynchronization1, updated log messages to include newly created handles
12 years ago
bunnei
706584f007
svc: enabled use of newly created kernel thread handle
12 years ago
bunnei
eb537c560a
mutex: refactored the interface to code to return a Mutex* handle
12 years ago
bunnei
978e1d4653
mutex: initial commit of HLE module
12 years ago
bunnei
08e6a9bf89
svc: added some comments
12 years ago
bunnei
75c6d2a8fa
thread: moved threading calls to the Kernel namespace
12 years ago
bunnei
143bba2045
renamed "syscall" module to "svc" (more accurate naming)
12 years ago
bunnei
088a2de9a6
renamed "session" to "handle"
12 years ago
bunnei
16d55842c5
fix warning
12 years ago
bunnei
725d240bf7
renamed "UID" to "Handle" where appropriate
12 years ago
bunnei
8fba88d5d5
- added stub for CreateEvent
- changed some stubbed SVCs to return unique handle names for debugging purposes
12 years ago
bunnei
6a6c7eeccb
added stubbed function for WaitSynchronizationN
12 years ago
bunnei
cfea5fdd58
cleanups to SVC CreateThread
12 years ago
bunnei
4fba4f36bf
- added SVC stubs for QueryMemory and GetThreadId
- added SVC structs MemoryInfo and PageInfo
12 years ago
bunnei
367d63691f
- added ThreadContext struct
- cleaned up CreateThread svc
12 years ago
bunnei
b5ef630c9c
added CreateThread, CreateMutex, and ReleaseMutex SVC stubs (just parameter decoding for now)
12 years ago
bunnei
4de763f462
removed unnecessary log message
12 years ago
bunnei
de36d82dde
- added debug logging to syscall.cpp
- added stubbed HLE syscall functions for svc_GetResourceLimit and svc_GetResourceLimitCurrentValues
12 years ago
bunnei
4ee72869cc
- added some function wrappers for HLE
- added stub for SVC CreateAddressArbiter
- added OutputDebugString SVC
12 years ago
bunnei
e08f242141
fixed bug where svc_ControlMemory was not properly getting passed in parameters
12 years ago
bunnei
890c7261d2
- added preliminary support for svc_MapMemoryBlock
- added shared memory region
- moarrrr cleanups to memory_map
12 years ago
bunnei
70c2cce963
renamed hw_lcd module to just lcd
12 years ago
bunnei
b2baafaf8b
added GSP heap memory allocation
12 years ago
bunnei
de3dcd38f6
- fixed tabs in function_wrappers.h
- fixed log message wording in hle.cpp
- added syscall stubs for CloseHandle and WaitSynchronization1
12 years ago
bunnei
68e198476f
- added HLE to connect to "srv:" service
- added a manager for keeping track of services/ports
- added a memory mapped region for memory accessed by HLE
- added HLE for GetThreadCommandBuffer function
12 years ago