aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/time
AgeCommit message (Collapse)Author
2021-02-05hle: kernel: Reimplement KReadableEvent and KWritableEvent.bunnei
2021-02-05hle: kernel: Rename WritableEvent to KWritableEvent.bunnei
2021-01-28core: hle: kernel: Rename Thread to KThread.bunnei
2021-01-15core: Silence Wclass-memaccess warningsReinUsesLisp
This requires making several types trivial and properly initialize them whenever they are called.
2020-12-06hle: kernel: Rewrite scheduler implementation based on Mesopshere.bunnei
2020-11-26service: Eliminate usages of the global system instanceLioncash
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
2020-10-26hle: services: TimeZoneContentManager: This can be made explicit.bunnei
2020-10-22Merge pull request #4792 from bunnei/rtc-fixbunnei
service: time: Update current time with changes to RTC setting.
2020-10-20Revert "core: Fix clang build"bunnei
2020-10-17core: Fix clang buildLioncash
Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
2020-10-13core/CMakeLists: Make some warnings errorsLioncash
Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
2020-10-12service: time: Update current time with changes to RTC setting.bunnei
- This can be used to advance time, e.g. for Pokemon Sword/Shield pokejobs.
2020-08-14time_zone_content_manager: Collapse auto and default caseLioncash
Prevents a useless self-assignment from occurring.
2020-08-03ipc: Allow all trivially copyable objects to be passed directly into ↵David
WriteBuffer (#4465) * ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer With the support of C++20, we can use concepts to deduce if a type is an STL container or not. * More agressive concept for stl containers * Add -fconcepts * Move to common namespace * Add Common::IsBaseOf
2020-07-11Merge pull request #4203 from VolcaEM/servicesbunnei
service: Update function tables
2020-06-29service: Update function tablesVolcaEM
2020-06-27General: Recover Prometheus project from harddrive failure Fernando Sahmkow
This commit: Implements CPU Interrupts, Replaces Cycle Timing for Host Timing, Reworks the Kernel's Scheduler, Introduce Idle State and Suspended State, Recreates the bootmanager, Initializes Multicore system.
2020-05-12time_zone: Use std::chrono::seconds for strong typing.bunnei
2020-05-11hle: service: time_zone_manager: Use current time zone setting.bunnei
2020-04-23Merge pull request #3730 from lioncash/timebunnei
service/time: Remove reliance on the global system accessor
2020-04-21Merge pull request #3698 from lioncash/warningbunnei
General: Resolve minor assorted warnings
2020-04-19service/time: Remove reliance on the global system accessorLioncash
Eliminates usages of the global system accessor and instead passes the existing system instance into the interfaces.
2020-04-17time/system_clock_core: Remove unnecessary initializerLioncash
This is already initialized within the class body.
2020-04-17service/time: Mark IsStandardNetworkSystemClockAccuracySufficient as constLioncash
This doesn't modify internal member state.
2020-04-17service/time: Add virtual destructors where applicableLioncash
Many of these implementations are used to implement a polymorphic interface. While not directly used polymorphically, this prevents virtual destruction from ever becoming an issue.
2020-04-17service: time: Update for new shared memory layout.bunnei
2020-04-16time_zone_manager: Resolve sign conversion warningsLioncash
ttis and ats will never exceed the length of INT32_MAX in our case, so this is safe.
2020-04-16Merge pull request #3673 from lioncash/extrabunnei
CMakeLists: Specify -Wextra on linux builds
2020-04-15CMakeLists: Specify -Wextra on linux buildsLioncash
Allows reporting more cases where logic errors may exist, such as implicit fallthrough cases, etc. We currently ignore unused parameters, since we currently have many cases where this is intentional (virtual interfaces). While we're at it, we can also tidy up any existing code that causes warnings. This also uncovered a few bugs as well.
2020-04-14service: time: Implement CalculateStandardUserSystemClockDifferenceByUser.bunnei
- Used by Animal Crossing: New Horizons.
2020-03-27services: time: Implement CalculateSpanBetween.bunnei
- Used by Super Smash Bros. Ultimate.
2020-03-18time_zone_content_manager: Fix out of bounds readReinUsesLisp
There were cases where raw_data didn't contain enough space to hold the zero terminator. This was caught with -fsanitize=address.
2020-02-11Core: Set all hardware emulation constants in a single file.Fernando Sahmkow
2020-01-22service: time: Implement ToPosixTimeWithMyRule.bunnei
- Used by Pokemon Mystery Dungeon.
2020-01-20time: Fix month off-by-one error.bunnei
- Fixes timestamp in ZLA and Astral Chain saves.
2020-01-04service: time: Implement GetStandardLocalSystemClock.bunnei
2020-01-04time: Remove overflow error checking (currently breaks ADO builds).bunnei
2020-01-04service: time: Implement GetClockSnapshotFromSystemClockContext.bunnei
2020-01-04service: time: Implement IsStandardNetworkSystemClockAccuracySufficient.bunnei
2020-01-04service: time: Rewrite implementation of glue services.bunnei
2019-11-24Merge pull request #3094 from lioncash/tablesbunnei
service: Update function tables
2019-11-24kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for ↵bunnei
kernel objects. (#3154) * kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details.
2019-11-12service: Update function tablesLioncash
Keeps the function tables up to date. Updated based off information from Switchbrew.
2019-11-12service: Resolve sign conversion errorsLioncash
These are fairly trivial to resolve and most of the changes entail using RESULT_UNKNOWN over ResultCode(-1).
2019-09-22Deglobalize System: TimeDavid Marcec
2019-06-26Addressed issuesDavid Marcec
2019-06-26Implement Time::GetSharedMemoryNativeHandleDavid Marcec
This PR attempts to implement the shared memory provided by GetSharedMemoryNativeHandle. There is still more work to be done however that requires a rehaul of the current time module to handle clock contexts. This PR is mainly to get the basic functionality of the SharedMemory working and allow the use of addition to it whilst things get improved on. Things to note: Memory Barriers are used in the SharedMemory and a better solution would need to be done to implement this. Currently in this PR I’m faking the memory barriers as everything is sync and single threaded. They work by incrementing the counter and just populate the two data slots. On data reading, it will read the last added data. Specific values in the shared memory would need to be updated periodically. This isn't included in this PR since we don't actively do this yet. In a later PR when time is refactored this should be done. Finally, as we don't handle clock contexts. When time is refactored, we will need to update the shared memory for specific contexts. This PR does this already however since the contexts are all identical and not separated. We're just updating the same values for each context which in this case is empty. Tiime:SetStandardUserSystemClockAutomaticCorrectionEnabled, Time:IsStandardUserSystemClockAutomaticCorrectionEnabled are also partially implemented in this PR. The reason the implementation is partial is because once again, a lack of clock contexts. This will be improved on in a future PR. This PR closes issue #2556
2019-06-04core/core_timing_util: Amend casing of cyclesTo* functionsLioncash
Makes the casing consistent with all of our general function naming conventions.
2019-06-04core/core_timing_util: Use std::chrono types for specifying time unitsLioncash
Makes the interface more type-safe and consistent in terms of return values.
2019-04-11service: Update service function tablesLioncash
Updates function tables based off information from SwitchBrew.