Lioncash
d1e3e0eb42
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
44d2f427d4
core: Replace usages of LOG_GENERIC with new fmt-capable equivalents
8 years ago
Lioncash
324ee31fc3
general: Convert assertion macros over to be fmt-compatible
8 years ago
Lioncash
871e6c0041
kernel/shared_memory: Remove unnecessary semicolon at end of ConvertPermissions()
Functions don't need to be terminated by semicolons.
8 years ago
Lioncash
bd9414dd31
kernel: Migrate logging macros to fmt-compatible ones
8 years ago
Subv
329bec6dbd
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
4be07d1090
Kernel: Use 0x2C as default main thread priority for homebrew and lone NRO/NSOs
8 years ago
Subv
106d31e8c3
Qt: Update the WaitTree widget to show info about the current mutex of each thread.
8 years ago
Subv
f5a2b1920b
Kernel: Remove unused ConditionVariable class.
8 years ago
Subv
e499b48f97
Kernel: Remove old and unused Mutex code.
8 years ago
Subv
fcd7cbe65a
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
4e47dd5b59
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
5860b9f4ce
resource_limit: Make ResourceTypes an enum class
Prevents enum identifiers from leaking into the surrounding scope.
8 years ago
Lioncash
c9f5ae4fcc
common_funcs: Remove ARRAY_SIZE macro
C++17 has non-member size() which we can just call where necessary.
8 years ago
Hexagon12
4c462c91bd
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
3260473ce8
vm_manager: Increase GetTotalMemoryUsage value.
- Gets Binding of Isaac running.
8 years ago
bunnei
e71cfbce72
svc: Stub out SetThreadActivity, GetThreadContext.
8 years ago
bunnei
1eeef530e5
shared_memory: Remove incorrect 3ds-specific check.
8 years ago
bunnei
52c5bc4642
hle_ipc, fsp_srv: Cleanup logging.
8 years ago
bunnei
6d21b8cdea
hle_ipc: Do not ensure write buffer size.
8 years ago
bunnei
36cdd5a39c
memory: Fix stack region.
8 years ago
bunnei
86f0e841d8
svc: Stub GetThreadCoreMask.
8 years ago
N00byKing
d3bdad2aaa
Clang Fixes
8 years ago
N00byKing
8d34c0d2a0
More Warning cleanups
8 years ago
N00byKing
1212e9e231
Clean Warnings (?)
8 years ago
bunnei
7750edae39
hle_ipc: Add SleepClientThread to block current thread within HLE routines.
8 years ago
bunnei
01d72e813e
hle_ipc: Use shared_ptr instead of unique_ptr to allow copies.
8 years ago
bunnei
479400acc8
hle_ipc: Remove GetPointer(..) usage with WriteToOutgoingCommandBuffer.
8 years ago
bunnei
d6c27e6b28
thread: Add THREADSTATUS_WAIT_HLE_EVENT, remove THREADSTATUS_WAIT_ARB.
8 years ago
bunnei
dd2e72f1aa
process: MirrorMemory should use MemoryState::Mapped.
8 years ago
bunnei
d7bb09afe7
process: Unmap previously allocated heap.
8 years ago
bunnei
256153c50c
arm_interface: Support unmapping previously mapped memory.
8 years ago
bunnei
a0b00fe2d1
svc: Use more correct values for GetInfo MapRegion and NewMapRegion.
8 years ago
bunnei
a26561ce20
kernel: Move stack region outside of application heap.
8 years ago
bunnei
67bac363d8
process: Fix stack memory state.
8 years ago
bunnei
29bda49fc0
MemoryState: Add additional memory states and improve naming.
8 years ago
bunnei
f16763ed52
core: Move process creation out of global state.
8 years ago
Subv
a9c51be95e
Kernel: Store the program id in the Process class instead of the CodeSet class.
There may be many CodeSets per Process, so it's wasteful and overcomplicated to store the program id in each of them.
8 years ago
Jules Blok
29a5203a2a
thread: Clear the process list on shutdown.
8 years ago
N00byKing
ac2232b9cf
(Hopefully) Fix MinGW Build
8 years ago
N00byKing
11cef9ba72
Add UnmapSharedMemory
C++11 requires spaces on the Identifier
Add inttypes include
clang
8 years ago
mailwl
8f256914fc
Stub more functions
8 years ago
mailwl
dadb6c6e50
Add warning if Domain request has no domain message header
8 years ago
mailwl
2ba8b89864
Fix: change check for domain order and existance of domain message header
8 years ago
mailwl
e05f10cae8
IPC: add domain header to response if only it exists in request
8 years ago
bunnei
87335e8404
scheduler: Cleanup based on PR feedback.
8 years ago
bunnei
539977f39b
kernel: Use Scheduler class for threading.
8 years ago
bunnei
650f49fab2
kernel: Add Scheduler, which encapsulates the scheduling loading from Thread module.
8 years ago
bunnei
0b8907958f
kernel: Remove unused address_arbiter code.
8 years ago
Subv
fbb0ef851c
Kernel/IPC: Add a small delay after each SyncRequest to prevent thread starvation.
Ported from citra PR #3091
The delay specified here is from a Nintendo 3DS, and should be measured in a Nintendo Switch.
This change is enough to prevent Puyo Puyo Tetris's main thread starvation.
8 years ago