Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Common: Cleanup key_map includes. | Emmanuel Gil Peyrot | 2015-06-28 |
| | |||
* | kernel: Fix svcWaitSynch to always acquire requested wait objects. | bunnei | 2015-06-16 |
| | |||
* | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | 2015-05-29 |
| | |||
* | Memmap: Re-organize memory function in two files | Yuri Kunde Schlesner | 2015-05-15 |
| | | | | | | | memory.cpp/h contains definitions related to acessing memory and configuring the address space mem_map.cpp/h contains higher-level definitions related to configuring the address space accoording to the kernel and allocating memory. | ||
* | Merge pull request #748 from Subv/tls_max | bunnei | 2015-05-11 |
|\ | | | | | Core/Memory: Add TLS support for creating up to 300 threads | ||
* \ | Merge pull request #751 from yuriks/idle-thread | bunnei | 2015-05-11 |
|\ \ | | | | | | | Thread: Remove the idle thread | ||
| * | | Thread: Remove the idle thread | Yuri Kunde Schlesner | 2015-05-11 |
| | | | | | | | | | | | | Instead just use nullptr to represent no thread is active. | ||
| | * | Core/Memory: Add TLS support for creating up to 300 threads | Subv | 2015-05-11 |
| |/ |/| | |||
* | | Merge pull request #750 from Subv/process_svc | Yuri Kunde Schlesner | 2015-05-11 |
|\ \ | |/ |/| | Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThread | ||
| * | Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThread | Subv | 2015-05-11 |
| | | |||
* | | Thread: Correctly set main thread initial stack position | Yuri Kunde Schlesner | 2015-05-11 |
|/ | |||
* | fixup! Set the TLS address in the scheduler | Subv | 2015-05-10 |
| | |||
* | Core/Memory: Give every emulated thread it's own TLS area. | Subv | 2015-05-10 |
| | | | | | The TLS area for thread T with id Ti is located at TLS_AREA_VADDR + (Ti - 1) * 0x200. This allows some games like Mario Kart 7 to continue further. | ||
* | Kernel: Remove unused g_main_thread variable | Yuri Kunde Schlesner | 2015-05-08 |
| | |||
* | Kernel: Implemented priority inheritance for mutexes. | bunnei | 2015-04-09 |
| | |||
* | Thread: Implement priority boost for starved threads. | bunnei | 2015-04-09 |
| | | | | | | SVC: Return correct error code on invalid CreateThread processor ID. SVC: Assert when creating a thread with an invalid userland priority. | ||
* | Kernel: Fixed default thread priority. | bunnei | 2015-04-09 |
| | |||
* | Scheduler refactor Pt. 1 | Kevin Hartman | 2015-02-09 |
| | | | | | | | | | | | | | * Simplifies scheduling logic, specifically regarding thread status. It should be much clearer which statuses are valid for a thread at any given point in the system. * Removes dead code from thread.cpp. * Moves the implementation of resetting a ThreadContext to the corresponding core's implementation. Other changes: * Fixed comments in arm interfaces. * Updated comments in thread.cpp * Removed confusing, useless, functions like MakeReady() and ChangeStatus() from thread.cpp. * Removed stack_size from Thread. In the CTR kernel, the thread's stack would be allocated before thread creation. | ||
* | Kernel: Make WaitObjects share ownership of Threads waiting on them | Yuri Kunde Schlesner | 2015-02-02 |
| | | | | | | | | | | | | | | | | During normal operation, a thread waiting on an WaitObject and the object hold mutual references to each other for the duration of the wait. If a process is forcefully terminated (The CTR kernel has a SVC to do this, TerminateProcess, though no equivalent exists for threads.) its threads would also be stopped and destroyed, leaving dangling pointers in the WaitObjects. The solution is to simply have the Thread remove itself from WaitObjects when it is stopped. The vector of Threads in WaitObject has also been changed to hold SharedPtrs, just in case. (Better to have a reference cycle than a crash.) | ||
* | Explicitly instantiate constructors/destructors for Kernel objects | Yuri Kunde Schlesner | 2015-02-02 |
| | | | | | | This should speed up compile times a bit, as well as enable more liberal use of forward declarations. (Due to SharedPtr not trying to emit the destructor anymore.) | ||
* | Mutex: Replace g_mutex_held_locks with a set inside Thread | Yuri Kunde Schlesner | 2015-02-02 |
| | |||
* | Kernel: Use separate Handle tables for CoreTiming userdata | Yuri Kunde Schlesner | 2015-02-02 |
| | | | | This is to support the removal of GetHandle soon | ||
* | Thread: Modernize two functions that slipped through previous rebases | Yuri Kunde Schlesner | 2015-02-02 |
| | |||
* | Kernel: Mark all appropriate kernel objects as "final" | Yuri Kunde Schlesner | 2015-01-30 |
| | |||
* | Thread: Fix WaitSynchronization1 to not set register 1 on thread wakeup. | bunnei | 2015-01-21 |
| | |||
* | Kernel: Changed "ShouldWait" to return bool and "Acquire" to return void. | bunnei | 2015-01-21 |
| | |||
* | WaitObject: Renamed "Wait" to "ShouldWait", made "ShouldWait" and "Acquire" ↵ | bunnei | 2015-01-21 |
| | | | | pure virtual. | ||
* | Kernel: Moved Wait and Acquire to WaitObject, added way to retrieve a ↵ | bunnei | 2015-01-21 |
| | | | | WaitObject safely. | ||
* | AddressArbiter: Changed to Kernel::Object, big cleanup, removed code that ↵ | bunnei | 2015-01-21 |
| | | | | made no sense. | ||
* | Kernel: Get rid of WaitTypes and simplify lots of code, removing hacks. | bunnei | 2015-01-21 |
| | |||
* | WaitSynchronizationN: Refactor to fix several bugs | bunnei | 2015-01-21 |
| | | | | | | - Separate wait checking from waiting the current thread - Resume thread when wait_all=true only if all objects are available at once - Set output to correct wait object index when there are duplicate handles | ||
* | Kernel: Separate WaitSynchronization into Wait and Acquire methods. | bunnei | 2015-01-21 |
| | |||
* | WaitSynchronizationN: Implement return values | bunnei | 2015-01-21 |
| | |||
* | Thread: Keep track of multiple wait objects. | bunnei | 2015-01-21 |
| | |||
* | Kernel: Added WaitObject and changed "waitable" objects inherit from it. | bunnei | 2015-01-21 |
| | |||
* | core: Fix a few docstrings | Lioncash | 2015-01-20 |
| | |||
* | Kernel: Start using boost::intrusive_ptr for lifetime management | Yuri Kunde Schlesner | 2015-01-09 |
| | |||
* | Thread: Reduce use of Handles and move some funcs to inside the class. | Yuri Kunde Schlesner | 2015-01-09 |
| | |||
* | Kernel: Move Thread's definition to the header file | Yuri Kunde Schlesner | 2015-01-09 |
| | |||
* | Merge pull request #255 from Subv/cbranch_3 | bunnei | 2015-01-08 |
|\ | | | | | Implemented timers | ||
| * | SVC: Implemented the Timer service calls. | Subv | 2015-01-08 |
| | | |||
* | | SVC: Fixed SleepThread. | Subv | 2015-01-08 |
| | | | | | | | | It will now properly wait the specified number of nanoseconds and then wake up the thread. | ||
* | | Threads: Use a dummy idle thread when no other are ready. | Subv | 2015-01-07 |
|/ | | | | This thread will not actually execute instructions, it will only advance the timing/events and try to yield immediately to the next ready thread, if there aren't any ready threads then it will be rescheduled and start its job again. | ||
* | Kernel: New handle manager | Yuri Kunde Schlesner | 2014-12-28 |
| | | | | | | | | | | | This handle manager more closely mirrors the behaviour of the CTR-OS one. In addition object ref-counts and support for DuplicateHandle have been added. Note that support for DuplicateHandle is still experimental, since parts of the kernel still use Handles internally, which will likely cause troubles if two different handles to the same object are used to e.g. wait on a synchronization primitive. | ||
* | Merge pull request #291 from purpasmart96/license | bunnei | 2014-12-21 |
|\ | | | | | License change | ||
| * | License change | purpasmart96 | 2014-12-20 |
| | | |||
* | | Thread: Wait current thread on svc_SleepThread | bunnei | 2014-12-20 |
| | | | | | | | | | | | | - Removed unused VBLANK sleep mode - Added error log for bad context switch - Renamed VerifyWait to CheckWaitType to be more clear | ||
* | | Kernel: Implement support for current thread pseudo-handle | Yuri Kunde Schlesner | 2014-12-20 |
|/ | | | | This boots a few (mostly Nintendo 1st party) games further. | ||
* | Thread: Fixed to wait on address when in arbitration. | bunnei | 2014-12-08 |
| | |||
* | Threads: Implemented a sequential thread id | Subv | 2014-12-04 |
| |