| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2016-12-14 | Fixed the codestyle to match our clang-format rules. | Subv | |
| 2016-12-09 | WaitSynch: 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-04 | Threading: Added some utility functions and const correctness. | Subv | |
| 2016-12-03 | Threading: Reworked the way our scheduler works. | Subv | |
| Threads will now be awakened when the objects they're waiting on are signaled, instead of repeating the WaitSynchronization call every now and then. The scheduler is now called once after every SVC call, and once after a thread is awakened from sleep by its timeout callback. This new implementation is based off reverse-engineering of the real kernel. See https://gist.github.com/Subv/02f29bd9f1e5deb7aceea1e8f019c8f4 for a more detailed description of how the real kernel handles rescheduling. | |||
| 2016-09-22 | implement wait tree widget | wwylele | |
| 2016-09-21 | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | |
| This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | |||
| 2016-09-18 | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | |
| 2016-05-07 | Kernel/Threads: Dynamically allocate the TLS region for threads in the BASE ↵ | Subv | |
| region of the linear heap. Each thread gets a 0x200-byte area from the 0x1000-sized page, when all 8 thread slots in a single page are used up, the kernel allocates a new page to hold another 8 entries. This is consistent with what the real kernel does. | |||
| 2015-09-10 | General: Fix up doxygen comments | Lioncash | |
| 2015-06-28 | Common: Cleanup key_map includes. | Emmanuel Gil Peyrot | |
| 2015-06-16 | kernel: Fix svcWaitSynch to always acquire requested wait objects. | bunnei | |
| 2015-05-29 | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | |
| 2015-05-15 | Memmap: Re-organize memory function in two files | Yuri Kunde Schlesner | |
| 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. | |||
| 2015-05-11 | Merge pull request #748 from Subv/tls_max | bunnei | |
| Core/Memory: Add TLS support for creating up to 300 threads | |||
| 2015-05-11 | Merge pull request #751 from yuriks/idle-thread | bunnei | |
| Thread: Remove the idle thread | |||
| 2015-05-11 | Thread: Remove the idle thread | Yuri Kunde Schlesner | |
| Instead just use nullptr to represent no thread is active. | |||
| 2015-05-11 | 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 | |
| Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThread | |||
| 2015-05-11 | 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-10 | fixup! Set the TLS address in the scheduler | Subv | |
| 2015-05-10 | Core/Memory: Give every emulated thread it's own TLS area. | Subv | |
| 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. | |||
| 2015-05-08 | Kernel: Remove unused g_main_thread variable | Yuri Kunde Schlesner | |
| 2015-04-09 | Kernel: Implemented priority inheritance for mutexes. | bunnei | |
| 2015-04-09 | Thread: Implement priority boost for starved threads. | bunnei | |
| SVC: Return correct error code on invalid CreateThread processor ID. SVC: Assert when creating a thread with an invalid userland priority. | |||
| 2015-04-09 | Kernel: Fixed default thread priority. | bunnei | |
| 2015-02-09 | Scheduler refactor Pt. 1 | Kevin Hartman | |
| * 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. | |||
| 2015-02-02 | Kernel: Make WaitObjects share ownership of Threads waiting on them | Yuri Kunde Schlesner | |
| 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.) | |||
| 2015-02-02 | Explicitly instantiate constructors/destructors for Kernel objects | Yuri Kunde Schlesner | |
| 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.) | |||
| 2015-02-02 | 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 | |
| This is to support the removal of GetHandle soon | |||
| 2015-02-02 | Thread: Modernize two functions that slipped through previous rebases | Yuri Kunde Schlesner | |
| 2015-01-30 | Kernel: Mark all appropriate kernel objects as "final" | Yuri Kunde Schlesner | |
| 2015-01-21 | 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 | |
| pure virtual. | |||
| 2015-01-21 | Kernel: Moved Wait and Acquire to WaitObject, added way to retrieve a ↵ | bunnei | |
| WaitObject safely. | |||
| 2015-01-21 | AddressArbiter: Changed to Kernel::Object, big cleanup, removed code that ↵ | bunnei | |
| made no sense. | |||
| 2015-01-21 | Kernel: Get rid of WaitTypes and simplify lots of code, removing hacks. | bunnei | |
| 2015-01-21 | WaitSynchronizationN: Refactor to fix several bugs | bunnei | |
| - 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 | |||
| 2015-01-21 | 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-20 | core: Fix a few docstrings | Lioncash | |
| 2015-01-09 | 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-08 | Merge pull request #255 from Subv/cbranch_3 | bunnei | |
| Implemented timers | |||
| 2015-01-08 | SVC: Implemented the Timer service calls. | Subv | |
