bunnei
d2a2789dda
config: Add option for specifying screen resolution scale factor.
9 years ago
Hyper
82ed89eec2
Kernel: Fix SharedMemory objects always returning error when addr = 0 ( #2404 )
Closes #2400
9 years ago
Subv
6c6117868a
Kernel: Don't attempt to yield execution in SleepThread(0) if there are no available threads to run.
With this we avoid an useless temporary deschedule of the current thread.
9 years ago
Subv
975f3e0853
Kernel: Remove some unused functions.
9 years ago
Subv
d27ef4a5d3
Kernel: Removed the priority boost code for starved threads.
After hwtesting and reverse engineering the kernel, it was found that the CTROS scheduler performs no priority boosting for threads like this, although some other forms of scheduling priority-starved threads might take place.
For example, it was found that hardware interrupts might cause low-priority threads to run if the CPU is preempted in the middle of an SVC handler that deschedules the current (high priority) thread before scheduling it again.
9 years ago
Subv
f8d98e241d
Kernel/Semaphore: Fixed a regression in semaphore waits.
The regression was caused by a missing check in #2260 .
The new behavior is consistent with the real kernel.
9 years ago
Subv
a0ae8f7c26
Kernel: Add some asserts to enforce the invariants in the scheduler.
9 years ago
Subv
1ba3dd032e
Kernel: Remove a thread from all of its waiting objects' waiting_threads list when it is awoken.
This fixes a potential bug where threads would not get removed from said list if they awoke after waiting with WaitSynchronizationN with wait_all = false
9 years ago
Subv
3ce2c24665
Kernel: Remove Thread::wait_objects_index and use wait_objects to hold all the objects that a thread is waiting on.
9 years ago
Subv
bcad1d6f12
Kernel: Use different thread statuses when a thread calls WaitSynchronization1 and WaitSynchronizationN with wait_all = true.
This commit removes the overly general THREADSTATUS_WAIT_SYNCH and replaces it with two more granular statuses:
THREADSTATUS_WAIT_SYNCH_ANY when a thread waits on objects via WaitSynchronization1 or WaitSynchronizationN with wait_all = false.
THREADSTATUS_WAIT_SYNCH_ALL when a thread waits on objects via WaitSynchronizationN with wait_all = true.
9 years ago
Subv
8503e56689
Kernel/Mutex: Propagate thread priority changes to other threads inheriting the priority via mutexes
9 years ago
Subv
d33885b60b
Kernel/Mutex: Update a mutex priority when a thread stops waiting on it.
9 years ago
Subv
4e6369d41d
Kernel/Mutex: Implemented priority inheritance.
The implementation is based on reverse engineering of the 3DS's kernel.
A mutex holder's priority will be temporarily boosted to the best priority among any threads that want to acquire any of its held mutexes.
When the holder releases the mutex, it's priority will be boosted to the best priority among the threads that want to acquire any of its remaining held mutexes.
9 years ago
Subv
90570c153b
Kernel: Object ShouldWait and Acquire calls now take a thread as a parameter.
This will be useful when implementing mutex priority inheritance.
9 years ago
Subv
a1718862e3
Kernel/Synch: Do not attempt a reschedule on every syscall.
Not all syscalls should cause reschedules, this commit attempts to remedy that, however, it still does not cover all cases.
9 years ago
Jonathan Hao
1df720ed08
Fix some warnings ( #2399 )
9 years ago
mailwl
45b03ee367
Service/NFC: stub GetTagInRangeEvent
Fix Fatal Error in Mini-Mario & Friends - amiibo Challenge
9 years ago
wwylele
bf96d8c561
Core: remove unused hle.cpp
9 years ago
wwylele
0372b0ea28
Core: reset cpu_core in Shutdown to make IsPoweredOn work properly
9 years ago
MerryMage
4aaaea9758
core: Move emu_window and key_map into core
* Removes circular dependences (common should not depend on core)
9 years ago
mailwl
3a05b161bc
Service/NWM: add nwm services
9 years ago
MerryMage
608278503c
arm_dynarmic: Provide MemoryReadCode callback
Change of interface in dynarmic 36082087de
9 years ago
bunnei
d445aad022
ThreadContext: Move from "core" to "arm_interface".
9 years ago
bunnei
8cfd0762fd
core: Replace "AppCore" nomenclature with just "CPU".
9 years ago
bunnei
1fd7cfb69e
Address clang-format issues.
9 years ago
bunnei
5d22844f3e
core: Remove HLE module, consolidate code & various cleanups.
9 years ago
bunnei
d504f6cf08
core: Consolidate core and system state, remove system module & cleanups.
9 years ago
bunnei
98bf7cc82f
core: Consolidate top-level system state into a singleton.
9 years ago
bunnei
fdcff791c3
loader: Remove duplicate docstrings.
9 years ago
bunnei
1224db246e
Revert "Memory: Always flush whole pages from surface cache"
9 years ago
wwylele
c62bc4e616
Thread: remove the thread from the thread list when exiting
9 years ago
wwylele
ea4217939a
Kernel: remove object's waiting thread if it is dead
9 years ago
Lioncash
cae211f90c
gdbstub: const correctness changes
Also uses size_t as the length indicator type, as is common with buffers.
9 years ago
wwylele
267f26d7df
FS: fix debug build from #2249
9 years ago
Lioncash
bec7bc3ec9
gdbstub: Remove global variable from public interface
Currently, this is only ever queried, so adding a function to check if the
server is enabled is more sensible.
If directly modifying this externally is ever desirable, it should be done
by adding a function to the interface, rather than exposing implementation
details directly.
9 years ago
Lioncash
7c1a069ab6
hid: Get rid of a double -> float truncation warning
float literals need to have the 'f' prefix.
9 years ago
Lioncash
cb4293adf1
core: Add missing #pragma once directives where applicable
9 years ago
Lioncash
8e6bf2478f
act: Fix docstring typo
These aren't the AM services.
9 years ago
MerryMage
af97174940
loader: Implement ReadProgramId
9 years ago
MerryMage
6e2d70a777
archive_source_sd_savedata: Add static method to get a specific save data path
9 years ago
Yuri Kunde Schlesner
415064165a
Memory: Always flush whole pages from surface cache
This prevents individual writes touching a cached page, but which don't
overlap the surface, from constantly hitting the surface cache lookup.
9 years ago
mailwl
c7a28acce4
Service/CECD: Add cecd:ndm service
9 years ago
Subv
3e80a1a1c1
Fixed the codestyle to match our clang-format rules.
9 years ago
Subv
00decc1180
Fixed the codestyle to match our clang-format rules.
9 years ago
mailwl
11e9681df2
Service/ACT: move ACT services to folder
9 years ago
JamePeng
7af1081bb0
Minor amendment of GSP_GPU::ImportDisplayCaptureInfo code
9 years ago
mailwl
a88468d683
csnd:SND reformat source code
9 years ago
mailwl
e3828ed7fa
APT::GetStartupArgument: force clear startup argument
9 years ago
Emmanuel Gil Peyrot
01e0d578d3
Core: Add a forgotten #include <cstring> for memcpy.
9 years ago
Lioncash
b0ebdfae34
Add all services to the Service namespace
Previously there was a split where some of the services were in the
Service namespace and others were not.
9 years ago