Emmanuel Gil Peyrot
f5d38649c7
Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated
11 years ago
purpasmart96
66431bceda
Kernel:Add missing permissions in shared memory & svc
11 years ago
Lioncash
72846c418e
core: Mark some hle functions as static
...
These functions are not referred to by their linkage name outside of the translation unit, so they can be marked as static.
11 years ago
Sean
9a012ff007
Fix some warnings
11 years ago
bunnei
532a9e80a0
Merge pull request #99 from archshift/ext-check
...
loader.cpp: improved file extension checking, made Upper/LowerStr useful, moved string_util into Common namespace
11 years ago
archshift
6e606c515f
core: Prune redundant includes
11 years ago
archshift
5472fd4d9b
Added string_util to common, small changes in loader.cpp
11 years ago
bunnei
e9c5c563a5
Merge pull request #55 from lioncash/string
...
Core: Alter the kernel string functions to use std::string instead of const char*.
11 years ago
bunnei
10f25866e2
SVC: Added support for svc_GetSystemTick.
...
Changed HLE function return methods to be static inline functions.
11 years ago
Lioncash
98fa3f7cba
Core: Alter the kernel string functions to use std::string instead of const char*.
...
Most functions already operate on std::strings. This also removes the need to manually null terminate thread names.
11 years ago
Lioncash
986dd27392
Core: Fix a formatting error in svc.cpp
...
entry_point would not be added to the string. Also used StringFromFormat
so that the buffer is unnecessary.
11 years ago
bunnei
66f91b4346
SVC: Fixed typo with MapMemoryBlock DEBUG_LOG call.
11 years ago
bunnei
4d4607041b
SVC: Removed ArbitrateAddress log message that spams to much.
11 years ago
bunnei
3eb89f3e98
Kernel: Added preliminary support for address arbiters.
...
AddressArbiter: Added documentation comment, fixed whitespace issue.
AddressArbiter: Fixed incorrect comment, reordered if-statement to be more clear.
SVC: Removed trailing whitespace.
11 years ago
bunnei
7ff92c36ed
SharedMemory: Updated MapSharedMemory to use an enum for permissions.
...
- Also added some safety checks to MapSharedMemory.
11 years ago
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.
11 years ago
bunnei
8957622d10
SVC: Renamed all function wrapper templates to Wrap, moved to HLE namespace.
11 years ago
bunnei
862db811f0
SVC: Cleaned up function wrappers to pass in correct argument types.
11 years ago
bunnei
4d6c96b7d8
SVC: Moved declaration of "wait" variable in SendSyncRequest for improved readability.
11 years ago
bunnei
c95972275e
HLE: Updated all uses of NULL to nullptr (to be C++11 compliant)
11 years ago
bunnei
d7363322c7
HLE: Updated various handle debug assertions to be more clear.
11 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.
11 years ago
bunnei
477b0caca4
svc: updated WaitSynchronizationN to properly use first pointer argument
11 years ago
bunnei
4819e9a60f
svc: changed DuplicateHandle log message from "error" to "debug"
11 years ago
bunnei
3fb31fbc57
svc: added GetThreadPriority and SetThreadPriority, added (incomplete) DuplicateHandle support
11 years ago
bunnei
10447d1f48
kernel: changed main thread priority to default, updated Kernel::Reschedule to use PrepareReschedule
11 years ago
bunnei
15c7d81706
svc: cleaned up function_wrappers, updated various SVCs to make use of pointer arguments
11 years ago
bunnei
f2f638492b
svc: updated waitSychronization to not overwrite handle on return, added stub for SleepThread (does nothing)
11 years ago
bunnei
c404d22036
hle: cleaned up log messages
11 years ago
bunnei
b0bad47c0e
svc: updated OutputDebugString to use OS_LOG
11 years ago
bunnei
6d267142ad
svc: changed unimplemented SVC log messages from "debug" messages to "error" messages
11 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
11 years ago
bunnei
47e781e80a
svc: implemented WaitSynchronization1, WaitSynchronizationN, and CreateEvent
11 years ago
bunnei
58a3adcdd2
kernel: updated SyncRequest to take boolean thread wait result as a parameter
11 years ago
bunnei
6e51c56fe4
svc: added some assertions
11 years ago
bunnei
9f7ed2d027
svc: changed SendSyncRequest to use Kernel::Object SyncRequest (instead of just service Interface class)
11 years ago
bunnei
15d2ab1b33
svc: added stub for DuplicateHandle SVC call
11 years ago
bunnei
f8a98ab022
svc: added a check to ensure that a service was implemented before attempting to connect to its port
11 years ago
bunnei
b99ac2c3d6
thread: renamed "WaitCurThread" to "WaitCurrentThread", removed unused "reason" argument
11 years ago
bunnei
7c0b006076
thread: removed unused SwitchContext/Reschedule reason field, added missing arg parameter to SVC CreateThread
11 years ago
bunnei
06e3c3d55a
svc: added Kernel::Reschedule to svc WaitSynchronization1, updated log messages to include newly created handles
11 years ago
bunnei
706584f007
svc: enabled use of newly created kernel thread handle
11 years ago
bunnei
eb537c560a
mutex: refactored the interface to code to return a Mutex* handle
11 years ago
bunnei
978e1d4653
mutex: initial commit of HLE module
11 years ago
bunnei
08e6a9bf89
svc: added some comments
11 years ago
bunnei
75c6d2a8fa
thread: moved threading calls to the Kernel namespace
11 years ago
bunnei
143bba2045
renamed "syscall" module to "svc" (more accurate naming)
11 years ago