wwylele
70420272ca
HID: use AnalogDevice
9 years ago
wwylele
1d1329af23
HID: use ButtonDevice
9 years ago
wwylele
85ba60d5ec
Timer: restore missing signaled=true from #2421
9 years ago
B3n30
dcf115778a
Fix log entry in timer::signal ( #2600 )
9 years ago
Mat M
0cb52ee74a
Doxygen: Amend minor issues ( #2593 )
Corrects a few issues with regards to Doxygen documentation, for example:
- Incorrect parameter referencing.
- Missing @param tags.
- Typos in @param tags.
and a few minor other issues.
9 years ago
Yuri Kunde Schlesner
b285c2a4ed
Core: Make PerfStats internally locked
More ergonomic to use and will be required for upcoming changes.
9 years ago
Yuri Kunde Schlesner
c75ae6c585
Add performance statistics to status bar
9 years ago
Yuri Kunde Schlesner
441f8b5a4b
Core: Remove unnecessary include in thread.h
9 years ago
wwylele
2d6113de09
IR: separate functions of each port to their own files
9 years ago
Subv
0be77c3ae4
Timers: Return an error when calling SetTimer with negative timeouts.
9 years ago
Subv
029a11030e
Timers: Immediately signal the timer if it was started with an initial value of 0.
9 years ago
wwylele
d5b0e275e3
APT: implement Wrap and Unwrap
9 years ago
Weiyi Wang
c7c1f56ce6
HID: move enable_accelerometer/gyroscope_count initialization into Init() ( #2574 )
Fixes #2556
9 years ago
Yuri Kunde Schlesner
070daf4126
HLE/IPC: Fix uninitialized variables in helpers ( #2568 )
Fixes #2567
9 years ago
noah the goodra
ded09dc727
NWM changed to NIM
9 years ago
noah the goodra
ad49cec194
turned clang format back on
9 years ago
wwylele
20544977da
loader: use self NCCH archive
9 years ago
wwylele
a0df747325
file_sys: add Self NCCH archive
9 years ago
Weiyi Wang
0dd007e9ba
hid: remove the touch field from PadState ( #2557 )
9 years ago
Lectem
2ee472b9c7
fix wwylele's comment and use typename in templates
9 years ago
mailwl
a53714acd3
GSP_GPU::StoreDataCache stubbed ( #2428 )
9 years ago
mailwl
d0bf7df5ba
HLE/Applets: Stub Mint (eShop) Applet ( #2463 )
This allows Phoenix Wright - Dual Destinies to boot.
9 years ago
mailwl
0b0c5672c8
Core: update Kernel Config Memory to latest version (11.2)
9 years ago
Kloen
2ca3beb9d3
core: fix err_f.cpp warning about unhandled enumeration value on OSX
9 years ago
Kloen
095f7c83fc
core: fix mic_u warnings on MSVC
9 years ago
wwylele
2c7676d371
HID: reset acceleroeter and gyroscope index in Init
9 years ago
wwylele
0045ea662f
CFG: override language setting on boot
9 years ago
wwylele
47960b0659
CoreTiming: use named constant for ARM11 clock rate
9 years ago
wwylele
3c333c53f1
HID: manages updating itself using correct ticks
9 years ago
mailwl
efe7e245b2
Service/NFC: stub some functions
Tested on: Mini-Mario & Friends - amiibo Challenge
9 years ago
mailwl
b458d7447c
GSP::WriteHWRegsWithMask: fix register mask
9 years ago
Subv
1ddff14511
Threads: Check the process' resource limit for the max allowed priority when creating a thread and remove the priority clamping code.
9 years ago
Subv
f2f2572fed
Thread: Added priority range checking to svcSetThreadPriority and removed priority clamping code from Thread::SetPriority.
9 years ago
Subv
5ddc2e09b1
Y2R: Use the proper error code when GetStandardCoefficient receives an invalid value.
9 years ago
wwylele
cf3a272332
CAM: implement basic camera functions with a blank camera
9 years ago
Hyper
f0199a17f6
Kernel: Fix SharedMemory objects always returning error when addr = 0 ( #2404 )
Closes #2400
9 years ago
Subv
fc2266130b
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
5e2a8ebabf
Kernel: Remove some unused functions.
9 years ago
Subv
933df2606a
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
e52ca85711
Kernel: Implemented Pulse event and timers.
Closes #1904
9 years ago
Subv
4251eb26ec
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
dda4ec93be
Kernel: Add some asserts to enforce the invariants in the scheduler.
9 years ago
Subv
7f1dca8cd2
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
fd95b6ee26
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
cef5f45de2
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
d3ff5b91e1
Kernel/Mutex: Propagate thread priority changes to other threads inheriting the priority via mutexes
9 years ago
Subv
b6a0355568
Kernel/Mutex: Update a mutex priority when a thread stops waiting on it.
9 years ago
Subv
7abf185390
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
e6a7723f2f
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
38a90882a4
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