aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
AgeCommit message (Collapse)Author
2017-05-24Kernel: Centralize error definitions in errors.hYuri Kunde Schlesner
2017-05-21Merge pull request #2406 from Subv/session_disconnectYuri Kunde Schlesner
Kernel: Properly update port counters on session disconnection.
2017-05-21Kernel/Sessions: Remove the ClientSession::Create function.Subv
It is not meant to be used by anything other than CreateSessionPair.
2017-05-15Kernel: Remove a now unused enum and variable regarding a session's status.Subv
2017-05-15Kernel: Use a Session object to keep track of the status of a Client/Server ↵Subv
session pair. Reduce the associated port's connection count when a ServerSession is destroyed.
2017-05-09Kernel: Map special regions according to ExHeaderYuri Kunde Schlesner
This replaces the hardcoded VRAM/DSP mappings with ones made based on the ExHeader ARM11 Kernel caps list. While this has no visible effect for most applications (since they use a standard set of mappings) it does improve support for system modules and n3DS exclusives.
2017-05-09DSP: Create backing memory for entire DSP RAMYuri Kunde Schlesner
Also move address space mapping out of video_core.
2017-02-27Timer: restore missing signaled=true from #2421wwylele
2017-02-27Fix log entry in timer::signal (#2600)B3n30
2017-02-26Doxygen: Amend minor issues (#2593)Mat M
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.
2017-02-26Merge pull request #2587 from yuriks/status-barYuri Kunde Schlesner
Replace built-in Profiler with indicators in status bar
2017-02-26Core: Remove unnecessary include in thread.hYuri Kunde Schlesner
2017-02-21Timers: Immediately signal the timer if it was started with an initial value ↵Subv
of 0.
2017-01-11Threads: Check the process' resource limit for the max allowed priority when ↵Subv
creating a thread and remove the priority clamping code.
2017-01-11Thread: Added priority range checking to svcSetThreadPriority and removed ↵Subv
priority clamping code from Thread::SetPriority.
2017-01-10Merge pull request #2397 from Subv/pulsebunnei
Kernel: Implemented Pulse event and timers.
2017-01-06Merge pull request #2410 from Subv/sleepthreadbunnei
Don't yield execution in SleepThread(0) if there are no available threads to run
2017-01-06Merge pull request #2396 from Subv/sema_acquirebunnei
Kernel/Semaphore: Fixed a regression in semaphore waits.
2017-01-06Merge pull request #2408 from Subv/priority_boostingbunnei
Kernel: Removed the priority boost code for starved threads.
2017-01-05Kernel: Don't attempt to yield execution in SleepThread(0) if there are no ↵Subv
available threads to run. With this we avoid an useless temporary deschedule of the current thread.
2017-01-05Kernel: Remove some unused functions.Subv
2017-01-05Kernel: Removed the priority boost code for starved threads.Subv
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.
2017-01-05Kernel: Implemented Pulse event and timers.Subv
Closes #1904
2017-01-05Kernel/Semaphore: Fixed a regression in semaphore waits.Subv
The regression was caused by a missing check in #2260. The new behavior is consistent with the real kernel.
2017-01-05Kernel: Add some asserts to enforce the invariants in the scheduler.Subv
2017-01-05Kernel: Remove a thread from all of its waiting objects' waiting_threads ↵Subv
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
2017-01-05Kernel: Remove Thread::wait_objects_index and use wait_objects to hold all ↵Subv
the objects that a thread is waiting on.
2017-01-04Kernel: Use different thread statuses when a thread calls ↵Subv
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.
2017-01-04Kernel/Mutex: Propagate thread priority changes to other threads inheriting ↵Subv
the priority via mutexes
2017-01-04Kernel/Mutex: Update a mutex priority when a thread stops waiting on it.Subv
2017-01-04Kernel/Mutex: Implemented priority inheritance.Subv
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.
2017-01-04Kernel: Object ShouldWait and Acquire calls now take a thread as a parameter.Subv
This will be useful when implementing mutex priority inheritance.
2017-01-04Kernel/Synch: Do not attempt a reschedule on every syscall.Subv
Not all syscalls should cause reschedules, this commit attempts to remedy that, however, it still does not cover all cases.
2016-12-22ThreadContext: Move from "core" to "arm_interface".bunnei
2016-12-22core: Replace "AppCore" nomenclature with just "CPU".bunnei
2016-12-21core: Remove HLE module, consolidate code & various cleanups.bunnei
2016-12-21core: Consolidate core and system state, remove system module & cleanups.bunnei
2016-12-17Thread: remove the thread from the thread list when exitingwwylele
2016-12-16Kernel: remove object's waiting thread if it is deadwwylele
2016-12-16Merge pull request #2260 from Subv/schedulingbunnei
Threading: Reworked the way our scheduler works.
2016-12-14Fixed the codestyle to match our clang-format rules.Subv
2016-12-14Fixed the codestyle to match our clang-format rules.Subv
2016-12-10Properly remove a thread from its wait_objects' waitlist when it is awoken ↵Subv
by a timeout.
2016-12-09Moved the HLE command buffer translation task to ServerSession instead of ↵Subv
the HLE handler superclass.
2016-12-09WaitSynch: Removed unused variables and reduced SharedPtr copies.Subv
Define a variable with the value of the sync timeout error code. Use a boost::flat_map instead of an unordered_map to hold the equivalence of objects and wait indices in a WaitSynchN call.
2016-12-08Added a framework for partially handling Session disconnections.Subv
Further implementation will happen in a future commit. Fixes a regression.
2016-12-08Use std::move where appropriate.Subv
2016-12-06Use boost remove_erase_if instead of the erase-remove idiomSubv
2016-12-06Improved the algorithm for GetHighestPriorityReadyThread.Subv
2016-12-05Return an error code when connecting to a saturated port.Subv
The error code was taken from the 3DS kernel.