Subv
2a35a36251
Kernel/SVC: Signal the highest priority threads first in svcSignalProcessWideKey.
8 years ago
Subv
c74f2555b6
Kernel/Threads: Reschedule the proper core when operating on that core's threads.
8 years ago
Subv
fab3dd98fe
SVC: Removed unused WaitSynchronization1 function
8 years ago
bunnei
46ec9a9bc9
thread: Rename mask to affinity_masks.
8 years ago
bunnei
8aa5d25f82
threading: Reschedule only on cores that are necessary.
8 years ago
bunnei
d6e3cd9a17
svc: Implement GetThreadCoreMask and SetThreadCoreMask.
8 years ago
bunnei
1c36f2a798
svc: SignalProcessWideKey should apply to all cores.
8 years ago
bunnei
6a890023e9
svc: Implement GetCurrentProcessorNumber.
8 years ago
bunnei
a434fdcb10
core: Implement multicore support.
8 years ago
Lioncash
7c9644646f
general: Make formatting of logged hex values more straightforward
This makes the formatting expectations more obvious (e.g. any zero padding specified
is padding that's entirely dedicated to the value being printed, not any pretty-printing
that also gets tacked on).
8 years ago
Lioncash
3abba08080
string_util: Remove StringFromFormat() and related functions
Given we utilize fmt, we don't need to provide our own functions for formatting anymore
8 years ago
Lioncash
8475496630
general: Convert assertion macros over to be fmt-compatible
8 years ago
Lioncash
40dee76c57
kernel: Migrate logging macros to fmt-compatible ones
8 years ago
Subv
46572d027d
Kernel: Implemented mutex priority inheritance.
Verified with a hwtest and implemented based on reverse engineering.
Thread A's priority will get bumped to the highest priority among all the threads that are waiting for a mutex that A holds.
Once A releases the mutex and ownership is transferred to B, A's priority will return to normal and B's priority will be bumped.
8 years ago
Subv
be155f4d9d
Kernel: Remove unused ConditionVariable class.
8 years ago
Subv
b18ccf9399
Kernel: Properly implemented svcWaitProcessWideKey and svcSignalProcessWideKey
They work in tandem with guest code to provide synchronization primitives along with svcArbitrateLock/Unlock
8 years ago
Subv
e81a2080eb
Kernel: Corrected the implementation of svcArbitrateLock and svcArbitrateUnlock.
Switch mutexes are no longer kernel objects, they are managed in userland and only use the kernel to handle the contention case.
Mutex addresses store a special flag value (0x40000000) to notify the guest code that there are still some threads waiting for the mutex to be released. This flag is updated when a thread calls ArbitrateUnlock.
TODO:
* Fix svcWaitProcessWideKey
* Fix svcSignalProcessWideKey
* Remove the Mutex class.
8 years ago
Lioncash
bec05db746
resource_limit: Make ResourceTypes an enum class
Prevents enum identifiers from leaking into the surrounding scope.
8 years ago
Lioncash
d9e316e353
common_funcs: Remove ARRAY_SIZE macro
C++17 has non-member size() which we can just call where necessary.
8 years ago
Hexagon12
e52a87b98a
Various service name fixes - part 2 (rebased) ( #322 )
* Updated ACC with more service names
* Updated SVC with more service names
* Updated set with more service names
* Updated sockets with more service names
* Updated SPL with more service names
* Updated time with more service names
* Updated vi with more service names
8 years ago
bunnei
40bccd74d3
svc: Stub out SetThreadActivity, GetThreadContext.
8 years ago
bunnei
f6893969b3
svc: Stub GetThreadCoreMask.
8 years ago
N00byKing
0e72d0d826
More Warning cleanups
8 years ago
N00byKing
ef875d6a35
Clean Warnings (?)
8 years ago
bunnei
34a29ad051
svc: Use more correct values for GetInfo MapRegion and NewMapRegion.
8 years ago
bunnei
8be7131033
MemoryState: Add additional memory states and improve naming.
8 years ago
bunnei
7d6653268f
core: Move process creation out of global state.
8 years ago
N00byKing
08c6ac02cf
(Hopefully) Fix MinGW Build
8 years ago
N00byKing
2b41c6e573
Add UnmapSharedMemory
C++11 requires spaces on the Identifier
Add inttypes include
clang
8 years ago
mailwl
e4f94ee30b
Stub more functions
8 years ago
bunnei
ac81c02ed9
kernel: Use Scheduler class for threading.
8 years ago
bunnei
42fc437268
GetInfo: Implement IsCurrentProcessBeingDebugged.
8 years ago
bunnei
0b6b147939
WaitProcessWideKeyAtomic: Handle case where condition variable was already created.
8 years ago
bunnei
647364db8f
svc: SharedMemory size should be 64-bits and cleanup.
8 years ago
bunnei
f9c9ce2005
ArbitrateLock: Assert that requesting_thread is current_thread.
8 years ago
bunnei
67758857e4
hle: Remove Domain and SyncObject kernel objects.
8 years ago
James Rowe
096be16636
Format: Run the new clang format on everything
8 years ago
David
0b6da0c1ab
Added CreateSharedMemory & UNIMPLEMENTED() for non existent services. ( #113 )
* Added svcCreateSharedMemory
* Services which are not implemented now throw UNIMPLEMENTED()
* clang-format
* changed perms to u32
* removed camelcase
8 years ago
bunnei
e1ee8f4657
svc: Fix svcGetInfo MapRegionBaseAddr.
8 years ago
Lioncash
4497eb4528
svc: Rename some entries to match their analogue on SwitchBrew
Makes the codebase a little more consistent with regards to available documentation. Also amends the duplicate case where there was a similar entry at 0x72 named ConnectToPort.
8 years ago
Lioncash
c81ed5eb33
svc: Add CreateJitMemory and MapJitMemory svc strings
Makes the table match SwitchBrew for these entries
8 years ago
bunnei
7fa32af1c7
svc: Clang-format fix.
8 years ago
Subv
bf0e20c571
SVC: Correct some return values in svcGetInfo and added TitleId and PrivilegedProcessId stubs.
# Conflicts:
# src/core/hle/kernel/svc.cpp
8 years ago
David Marcec
bb7221c5d5
SetThreadCoreMask stub, time to implement fsp
8 years ago
David Marcec
68143af636
Added more svcGetInfo pairs
8 years ago
MerryMage
e35644c005
clang-format
8 years ago
bunnei
974362bc12
svc: Implement svcMapSharedMemory.
8 years ago
bunnei
1247c53786
yuzu: Update license text to be consistent across project.
8 years ago
bunnei
056f987bcd
core: Include <algorithm> where used.
8 years ago
bunnei
97ef21e166
svc: Implement GetSystemTick.
8 years ago