Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | kernel: Eliminate kernel global state | Lioncash | 2018-08-29 | 1 | -35/+10 |
| | | | | | | | | | | | | | | | | | | | | | | As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header. | ||||
* | kernel: Move object class to its own source files | Lioncash | 2018-08-02 | 1 | -1/+1 |
| | | | | | | General moving to keep kernel object types separate from the direct kernel code. Also essentially a preliminary cleanup before eliminating global kernel state in the kernel code. | ||||
* | core_timing: Split off utility functions into core_timing_util | MerryMage | 2018-07-24 | 1 | -0/+1 |
| | |||||
* | Rename logging macro back to LOG_* | James Rowe | 2018-07-03 | 1 | -2/+2 |
| | |||||
* | core_timing: Namespace all functions and constants in core_timing's header | Lioncash | 2018-04-30 | 1 | -2/+3 |
| | | | | All of these variables and functions are related to timings and should be within the namespace. | ||||
* | kernel: Migrate logging macros to fmt-compatible ones | Lioncash | 2018-04-26 | 1 | -2/+2 |
| | |||||
* | Format: Run the new clang format on everything | James Rowe | 2018-01-21 | 1 | -1/+1 |
| | |||||
* | CoreTiming: Reworked CoreTiming (cherry-picked from Citra #3119) | B3n30 | 2018-01-09 | 1 | -6/+3 |
| | | | | * CoreTiming: New CoreTiming; Add Test for CoreTiming | ||||
* | ResultVal: Remove MoveFrom() | Yuri Kunde Schlesner | 2017-06-19 | 1 | -1/+1 |
| | | | | | Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue. | ||||
* | Kernel: Move HandleTable to a separate file | Yuri Kunde Schlesner | 2017-05-30 | 1 | -0/+1 |
| | |||||
* | Timer: restore missing signaled=true from #2421 | wwylele | 2017-02-27 | 1 | -0/+2 |
| | |||||
* | Fix log entry in timer::signal (#2600) | B3n30 | 2017-02-27 | 1 | -1/+1 |
| | |||||
* | Timers: Immediately signal the timer if it was started with an initial value of 0. | Subv | 2017-02-22 | 1 | -16/+23 |
| | |||||
* | Merge pull request #2397 from Subv/pulse | bunnei | 2017-01-10 | 1 | -5/+7 |
|\ | | | | | Kernel: Implemented Pulse event and timers. | ||||
| * | Kernel: Implemented Pulse event and timers. | Subv | 2017-01-05 | 1 | -5/+7 |
| | | | | | | | | Closes #1904 | ||||
* | | Kernel: Object ShouldWait and Acquire calls now take a thread as a parameter. | Subv | 2017-01-04 | 1 | -3/+3 |
|/ | | | | This will be useful when implementing mutex priority inheritance. | ||||
* | Threading: Reworked the way our scheduler works. | Subv | 2016-12-04 | 1 | -4/+0 |
| | | | | | | | | | | 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. | ||||
* | Kernel/Events: Log an error when trying to create Pulse events and timers. | Subv | 2016-11-19 | 1 | -0/+5 |
| | | | | Related to #1904 | ||||
* | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | 2016-09-21 | 1 | -1/+1 |
| | |||||
* | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 2016-09-21 | 1 | -3/+1 |
| | | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | ||||
* | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | 2016-09-19 | 1 | -6/+3 |
| | |||||
* | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 2016-09-18 | 1 | -8/+11 |
| | |||||
* | svc: Make ResetType an enum class | Lioncash | 2016-03-12 | 1 | -1/+1 |
| | |||||
* | HLE/Timers: Reset OneShot timers when they are acquired instead of when they're triggered. | Subv | 2015-12-30 | 1 | -3/+3 |
| | | | | Closes #1139 | ||||
* | general: Silence some warnings when using clang | Lioncash | 2015-09-16 | 1 | -2/+4 |
| | |||||
* | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | 2015-05-29 | 1 | -1/+1 |
| | |||||
* | Kernel: Move reschedules from SVCs to actual mechanisms that reschedule. | bunnei | 2015-05-21 | 1 | -0/+4 |
| | |||||
* | Common: Remove common.h | Yuri Kunde Schlesner | 2015-05-07 | 1 | -1/+2 |
| | |||||
* | Kernel: Properly initialize and shutdown all modules. | bunnei | 2015-05-02 | 1 | -1/+2 |
| | |||||
* | Kernel: Use the correct format string for u64 hex. | Emmanuel Gil Peyrot | 2015-04-14 | 1 | -1/+1 |
| | |||||
* | Build: Fixed some warnings | Subv | 2015-02-12 | 1 | -1/+1 |
| | |||||
* | Asserts: break/crash program, fit to style guide; log.h->assert.h | archshift | 2015-02-11 | 1 | -1/+1 |
| | | | | | | | Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft. | ||||
* | Kernel: Stop creating useless Handles during object creation | Yuri Kunde Schlesner | 2015-02-02 | 1 | -4/+3 |
| | | | | | They're finally unnecessary, and will stop cluttering the application's handle table. | ||||
* | Explicitly instantiate constructors/destructors for Kernel objects | Yuri Kunde Schlesner | 2015-02-02 | 1 | -0/+3 |
| | | | | | | 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.) | ||||
* | Kernel: Use separate Handle tables for CoreTiming userdata | Yuri Kunde Schlesner | 2015-02-02 | 1 | -7/+8 |
| | | | | This is to support the removal of GetHandle soon | ||||
* | Kernel: Remove previous scheduled event when a Timer is re-Set | Yuri Kunde Schlesner | 2015-02-02 | 1 | -0/+3 |
| | |||||
* | Kernel: Convert Timer to (mostly) not use Handles | Yuri Kunde Schlesner | 2015-01-30 | 1 | -76/+31 |
| | |||||
* | Kernel: Remove useless/duplicated comments; mark functions static | Yuri Kunde Schlesner | 2015-01-30 | 1 | -1/+1 |
| | |||||
* | Kernel: Renamed some functions for clarity. | bunnei | 2015-01-22 | 1 | -1/+1 |
| | | | | | - ReleaseNextThread->WakeupNextThread - ReleaseAllWaitingThreads->WakeupAllWaitingThreads. | ||||
* | Kernel: Changed "ShouldWait" to return bool and "Acquire" to return void. | bunnei | 2015-01-22 | 1 | -4/+4 |
| | |||||
* | WaitObject: Renamed "Wait" to "ShouldWait", made "ShouldWait" and "Acquire" pure virtual. | bunnei | 2015-01-22 | 1 | -1/+1 |
| | |||||
* | Kernel: Get rid of WaitTypes and simplify lots of code, removing hacks. | bunnei | 2015-01-22 | 1 | -7/+2 |
| | |||||
* | WaitSynchronizationN: Refactor to fix several bugs | bunnei | 2015-01-22 | 1 | -3/+3 |
| | | | | | | - 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-22 | 1 | -1/+5 |
| | |||||
* | WaitSynchronizationN: Implement return values | bunnei | 2015-01-22 | 1 | -3/+3 |
| | |||||
* | Kernel: Added WaitObject and changed "waitable" objects inherit from it. | bunnei | 2015-01-22 | 1 | -9/+3 |
| | |||||
* | Kernel: Start using boost::intrusive_ptr for lifetime management | Yuri Kunde Schlesner | 2015-01-09 | 1 | -5/+5 |
| | |||||
* | Thread: Reduce use of Handles and move some funcs to inside the class. | Yuri Kunde Schlesner | 2015-01-09 | 1 | -4/+6 |
| | |||||
* | SVC: Implemented the Timer service calls. | Subv | 2015-01-09 | 1 | -0/+142 |