Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rework time service to fix time passing offline. | Kelebek1 | 2024-01-24 | 1 | -2/+13 |
| | |||||
* | kernel: fix resource limit imbalance | Liam | 2023-12-23 | 1 | -4/+3 |
| | |||||
* | general: properly support multiple memory instances | Liam | 2023-12-23 | 2 | -21/+23 |
| | |||||
* | Merge pull request #12327 from liamwhite/tipc | liamwhite | 2023-12-11 | 2 | -7/+25 |
|\ | | | | | sm:: fix tipc deserialization | ||||
| * | sm:: fix tipc deserialization | Liam | 2023-12-10 | 2 | -7/+25 |
| | | |||||
* | | Merge pull request #12321 from liamwhite/ro2 | liamwhite | 2023-12-11 | 2 | -5/+8 |
|\ \ | |/ |/| | ro: add separate ro service | ||||
| * | service: use interface factory in server manager | Liam | 2023-12-09 | 2 | -5/+8 |
| | | |||||
* | | kernel: implement remaining IPC syscalls | Liam | 2023-12-06 | 1 | -2/+0 |
|/ | |||||
* | core: remove ResultVal type | Liam | 2023-08-08 | 2 | -22/+25 |
| | |||||
* | kernel: match calls to Register and Unregister | Liam | 2023-04-30 | 2 | -0/+6 |
| | |||||
* | kernel: convert KPort, KSession | Liam | 2023-03-13 | 2 | -3/+3 |
| | |||||
* | hle: rename legacy errors to Results | Liam | 2023-03-07 | 1 | -12/+12 |
| | |||||
* | service: move hle_ipc from kernel | Liam | 2023-03-01 | 4 | -29/+28 |
| | |||||
* | sm:: remove unused member | Liam | 2023-03-01 | 1 | -1/+0 |
| | |||||
* | sm:: fix lingering session initialization issues | Liam | 2023-02-21 | 1 | -2/+7 |
| | |||||
* | sm:: support service registration deferral | Liam | 2023-02-21 | 2 | -3/+31 |
| | |||||
* | service: refactor server architecture | Liam | 2023-02-21 | 3 | -21/+26 |
| | | | | Converts services to have their own processes | ||||
* | kernel/svc_types: refresh | Liam | 2022-11-10 | 1 | -2/+2 |
| | |||||
* | sm:: avoid excessive port recreation | Liam | 2022-10-31 | 2 | -14/+18 |
| | |||||
* | k_server_session: add SendReplyHLE | Liam | 2022-10-31 | 1 | -4/+1 |
| | |||||
* | kernel: invert session request handling flow | Liam | 2022-10-31 | 3 | -15/+20 |
| | |||||
* | kernel: more complete fix for KPort reference counting | Liam | 2022-10-31 | 2 | -13/+27 |
| | |||||
* | k_server_session: fix crashes | Liam | 2022-10-30 | 1 | -1/+0 |
| | |||||
* | kernel: remove most SessionRequestManager handling from KServerSession | Liam | 2022-10-19 | 1 | -2/+3 |
| | |||||
* | k_server_session: preliminary support for userspace server sessions | Liam | 2022-10-12 | 1 | -1/+2 |
| | |||||
* | core: Replace all instances of ResultCode with Result | german77 | 2022-06-27 | 3 | -13/+13 |
| | |||||
* | general: Convert source file copyright comments over to SPDX | Morph | 2022-04-23 | 4 | -12/+8 |
| | | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later. | ||||
* | hle: kernel: Unify and integrate reference tracking for KServerPort/KServerSession. | bunnei | 2022-04-08 | 1 | -0/+1 |
| | | | | - These are not managed elsewhere, and need to be tracked and closed on emulation shutdown. | ||||
* | hle: service: sm: Remove manual tracking of KServerPorts. | bunnei | 2022-04-08 | 2 | -8/+1 |
| | |||||
* | hle: service: Add option for service interfaces to create or use the default thread. | bunnei | 2022-04-02 | 1 | -1/+1 |
| | |||||
* | core: hle: service: sm: Fix KPort reference count. | bunnei | 2022-03-15 | 1 | -0/+2 |
| | |||||
* | core: Remove unused includes | ameerj | 2021-11-04 | 3 | -5/+0 |
| | |||||
* | general: Remove MakeResult helpers | Morph | 2021-11-02 | 1 | -2/+2 |
| | | | | This is made obsolete by the presence of implicit constructors. | ||||
* | hle: service: sm: Refactor to better manage ports. | bunnei | 2021-07-21 | 2 | -38/+41 |
| | |||||
* | service: Append service name prefix to common filenames | Morph | 2021-07-14 | 3 | -2/+2 |
| | |||||
* | hle: service: sm: Remove redundant session reservation, etc. | bunnei | 2021-06-10 | 1 | -17/+9 |
| | | | | - We were double-reserving, causing us to run out of sessions in Pokemon Sword & Shield. | ||||
* | hle: service: sm: Fix GetService setup of session & port. | bunnei | 2021-06-10 | 1 | -4/+4 |
| | |||||
* | hle: kernel: Refactor to allocate a ServiceThread per service handler. | bunnei | 2021-06-05 | 2 | -28/+11 |
| | | | | | | - Previously, we would allocate a thread per session, which adds new threads on CloneCurrentObject. - This results in race conditions with N sessions queuing requests to the same service interface. - Fixes Pokken Tournament DX crashes/softlocks, which were regressed by #6347. | ||||
* | general: Replace RESULT_SUCCESS with ResultSuccess | Morph | 2021-06-02 | 2 | -6/+6 |
| | | | | Transition to PascalCase for result names. | ||||
* | hle: kernel: Implement CloneCurrentObject and improve session management. | bunnei | 2021-05-21 | 3 | -14/+39 |
| | |||||
* | Revert "WORKAROUND: temp. disable session resource limits while we work out issues" | bunnei | 2021-05-21 | 1 | -4/+4 |
| | | | | This reverts commit fc086f93b2165b5c210cb7dcd6c18ebe17f1fd7b. | ||||
* | WORKAROUND: temp. disable session resource limits while we work out issues | bunnei | 2021-05-11 | 1 | -4/+4 |
| | |||||
* | hle: service: sm: Add TIPC support. | bunnei | 2021-05-11 | 2 | -41/+66 |
| | | | | - Fixes our error checking of names as well. | ||||
* | hle: service: sm: GetService: Reserve session resource when we create a KSession. | bunnei | 2021-05-11 | 1 | -0/+7 |
| | |||||
* | hle: service: sm: Improve Initialize implementation. | bunnei | 2021-05-11 | 2 | -0/+3 |
| | |||||
* | hle: kernel: KSession: Improve implementation of CloneCurrentObject. | bunnei | 2021-05-11 | 1 | -2/+10 |
| | |||||
* | hle: service: sm: Increase point buffer size. | bunnei | 2021-05-11 | 1 | -1/+1 |
| | |||||
* | hle: kernel: Remove deprecated Object class. | bunnei | 2021-05-06 | 2 | -2/+2 |
| | |||||
* | hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject. | bunnei | 2021-05-06 | 2 | -22/+22 |
| | |||||
* | hle: kernel: Migrate KServerPort to KAutoObject. | bunnei | 2021-05-06 | 2 | -11/+10 |
| | |||||
* | hle: kernel: Migrate KClientPort to KAutoObject. | bunnei | 2021-05-06 | 2 | -7/+11 |
| | |||||
* | hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject. | bunnei | 2021-05-06 | 3 | -20/+15 |
| | |||||
* | hle: kernel: Refactor IPC interfaces to not use std::shared_ptr. | bunnei | 2021-05-06 | 2 | -4/+6 |
| | |||||
* | sm: Use proper names, update to 12.x | german77 | 2021-04-09 | 1 | -4/+5 |
| | |||||
* | core: hle: kernel: Update KSynchronizationObject. | bunnei | 2021-01-11 | 1 | -3/+0 |
| | |||||
* | service: Eliminate usages of the global system instance | Lioncash | 2020-11-27 | 4 | -11/+19 |
| | | | | | Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services. | ||||
* | service/sm: Slightly more efficient string name validation | Lioncash | 2020-09-17 | 1 | -2/+2 |
| | | | | | We can check the end of the string first for null-termination, rather than the beginning of the string. | ||||
* | service/sm: Eliminate dependency on the global system instance | Lioncash | 2020-09-17 | 2 | -6/+8 |
| | |||||
* | service: Remove two usages of the global system accessor | Lioncash | 2020-09-07 | 1 | -1/+1 |
| | | | | Removes more instances of reliance on global state. | ||||
* | common/concepts: Rename IsBaseOf to DerivedFrom | Lioncash | 2020-08-07 | 1 | -1/+1 |
| | | | | | | | | This makes it more inline with its currently unavailable standardized analogue std::derived_from. While we're at it, we can also make the template match the requirements of the standardized variant as well. | ||||
* | sm: Make use of IsBaseOf for GetService | David Marcec | 2020-08-03 | 1 | -3/+2 |
| | |||||
* | Merge pull request #4203 from VolcaEM/services | bunnei | 2020-07-11 | 2 | -13/+14 |
|\ | | | | | service: Update function tables | ||||
| * | Remove duplicate functions | VolcaEM | 2020-06-29 | 1 | -2/+0 |
| | | |||||
| * | Use decimal instead of hexadecimal | VolcaEM | 2020-06-29 | 1 | -3/+5 |
| | | | | | | Co-authored-by: David <25727384+ogniK5377@users.noreply.github.com> | ||||
| * | service: Update function tables | VolcaEM | 2020-06-29 | 2 | -12/+13 |
| | | |||||
* | | General: Cleanup legacy code. | Fernando Sahmkow | 2020-06-27 | 1 | -1/+1 |
|/ | |||||
* | Don't fail silently for vi, sm, set and ns services | David Marcec | 2020-04-29 | 1 | -3/+9 |
| | |||||
* | sm/controller: Increase PointerBufferSize | FearlessTobi | 2020-03-23 | 1 | -1/+1 |
| | | | | | | | This increases the PointerBufferSize as a lager one is required by some services. This change is still not hw-accurate, but it is proven to work in Ryujinx. Instead of using a hardcoded size, we should figure out the specific values for each service in the future. Some of them can be taken from Atmosphere: https://github.com/Atmosphere-NX/Atmosphere/search?q=PointerBufferSize. | ||||
* | kernel: Implement a more accurate IPC dispatch. | bunnei | 2019-11-28 | 3 | -19/+25 |
| | |||||
* | kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154) | bunnei | 2019-11-25 | 3 | -9/+9 |
| | | | | | | * 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. | ||||
* | kernel/server_port: Make data members private | Lioncash | 2019-03-11 | 1 | -1/+1 |
| | | | | | | | With this, all kernel objects finally have all of their data members behind an interface, making it nicer to reason about interactions with other code (as external code no longer has the freedom to totally alter internals and potentially messing up invariants). | ||||
* | kernel/server_session: Make data members private | Lioncash | 2019-03-06 | 1 | -1/+1 |
| | | | | | Makes it much nicer to locally reason about server session behavior, as part of its functionality isn't placed around other classes. | ||||
* | service/sm: Improve debug log for RegisterService | Lioncash | 2018-12-19 | 1 | -4/+5 |
| | | | | | | | Now it also indicates the name and max session count. This also gives a name to the unknown bool. This indicates if the created port is supposed to be using light handles or regular handles internally. This is passed to the respective svcCreatePort parameter internally. | ||||
* | hle/service, hle/sm: Compress usages of MakeResult() | Lioncash | 2018-12-06 | 1 | -2/+2 |
| | | | | | | These auto-deduce the result based off its arguments, so there's no need to do that work for the compiler, plus, the function return value itself already indicates what we're returning. | ||||
* | hle/service, hle/sm: Use structured bindings where applicable | Lioncash | 2018-12-06 | 1 | -3/+1 |
| | | | | | Gets rid of the need to keep the variables separate from their actual initialization spots. | ||||
* | Merge pull request #1801 from ogniK5377/log-before-execute | bunnei | 2018-11-29 | 2 | -6/+9 |
|\ | | | | | Changed logging to be "Log before execution", Added more error logging, all services/svc should now log on some level | ||||
| * | Changed logging to be "Log before execution", Added more error logging, all services should now log on some level | David Marcec | 2018-11-26 | 2 | -6/+9 |
| | | |||||
* | | service/sm: Take std::string by const reference in UnregisterService | Lioncash | 2018-11-24 | 2 | -2/+2 |
|/ | | | | | | | | Avoids the need to create a copy of the std::string instance (potentially allocating). The only reason RegisterService takes its argument by value is because it's std::moved internally. | ||||
* | sm: Implement RegisterService and UnregisterService | Zach Hilman | 2018-11-04 | 2 | -2/+55 |
| | | | These are needed by Edizon to boot. They are used to see if a user is using SX OS, as SX OS registers a custom service called 'tx' and attempting to register a service of the same name lets the application know if it is present. | ||||
* | Ported #4296 from citra | David Marcec | 2018-10-06 | 1 | -0/+19 |
| | | | | This will allow us to easily remove the use of "NFC" in "System" | ||||
* | service: Add missing headers inclusions where applicable | Lioncash | 2018-09-25 | 1 | -0/+3 |
| | | | | Gets rid of a few indirect inclusions. | ||||
* | Removed the use of rp.MakeBuilder | David Marcec | 2018-09-19 | 1 | -3/+2 |
| | | | | Due to keeping the code style consistent in the yuzu codebase. `rb = rp.MakeBuilder(...)` was replaced with `rb{ctx, ...}` | ||||
* | services/sm: Amend error code constants | Lioncash | 2018-09-14 | 2 | -8/+6 |
| | | | | | | | | Courtesy of @ogniK5377. This also moves them into the cpp file and limits the visibility to where they're directly used. It also gets rid of unused or duplicate error codes. | ||||
* | core/core: Remove unnecessary sm/controller include | Lioncash | 2018-09-06 | 4 | -1/+5 |
| | | | | | | | | | | The only reason this include was necessary, was because the constructor wasn't defaulted in the cpp file and the compiler would inline it wherever it was used. However, given Controller is forward declared, all those inlined constructors would see an incomplete type, causing a compilation failure. So, we just place the constructor in the cpp file, where it can see the complete type definition, allowing us to remove this include. | ||||
* | kernel: Eliminate kernel global state | Lioncash | 2018-08-29 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Merge pull request #1080 from lioncash/ret | bunnei | 2018-08-16 | 1 | -1/+1 |
|\ | | | | | sm/controller: Correct return value of QueryPointerBufferSize | ||||
| * | sm/controller: Correct return value of QueryPointerBufferSize | Lioncash | 2018-08-15 | 1 | -1/+1 |
| | | | | | | | | This should be returning a u16 according to Switch Brew. | ||||
* | | kernel/server_session: Add IsSession() member function | Lioncash | 2018-08-15 | 1 | -1/+1 |
|/ | | | | | | Allows querying the inverse of IsDomain() to make things more readable. This will likely also be usable in the event of implementing ConvertDomainToSession(). | ||||
* | kernel: Move object class to its own source files | Lioncash | 2018-08-02 | 1 | -3/+5 |
| | | | | | | 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. | ||||
* | hle/service: Make constructors explicit where applicable | Lioncash | 2018-07-19 | 1 | -1/+1 |
| | | | | | Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services. | ||||
* | Update clang format | James Rowe | 2018-07-03 | 1 | -2/+1 |
| | |||||
* | Rename logging macro back to LOG_* | James Rowe | 2018-07-03 | 2 | -7/+7 |
| | |||||
* | general: Make formatting of logged hex values more straightforward | Lioncash | 2018-05-02 | 1 | -1/+1 |
| | | | | | | This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on). | ||||
* | sm: Move logging macros over to new fmt-compatible ones | Lioncash | 2018-04-24 | 2 | -9/+8 |
| | |||||
* | core: Relocate g_service_manager to the System class | Lioncash | 2018-04-21 | 2 | -4/+6 |
| | | | | | Converts the service manager from a global into an instance-based variable. | ||||
* | service: Use nested namespace specifiers where applicable | Lioncash | 2018-04-20 | 4 | -16/+8 |
| | | | | Tidies up namespace declarations | ||||
* | Dont call UNIMPLEMENTED for 'empty services', just return error code | David Marcec | 2018-02-05 | 1 | -0/+2 |
| | |||||
* | controller: DuplicateSession should return a ClientSession. | bunnei | 2018-02-03 | 1 | -4/+9 |
| | |||||
* | ResponseBuilder: Use a bit field for customizing instead of always_move_handles. | bunnei | 2018-01-25 | 2 | -2/+3 |
| | |||||
* | hle: Rename RequestBuilder to ResponseBuilder. | bunnei | 2018-01-25 | 2 | -6/+6 |
| | |||||
* | service: Fix all incorrect IPC response headers. | bunnei | 2018-01-25 | 2 | -5/+4 |
| | |||||
* | hle: Integrate Domain handling into ServerSession. | bunnei | 2018-01-25 | 1 | -7/+5 |
| | |||||
* | hle: Remove Domain and SyncObject kernel objects. | bunnei | 2018-01-25 | 1 | -1/+0 |
| | |||||
* | Added CreateSharedMemory & UNIMPLEMENTED() for non existent services. (#113) | David | 2018-01-20 | 1 | -0/+1 |
| | | | | | | | | | | | | * Added svcCreateSharedMemory * Services which are not implemented now throw UNIMPLEMENTED() * clang-format * changed perms to u32 * removed camelcase | ||||
* | controller: Use DuplicateSession for DuplicateSessionEx. | bunnei | 2018-01-18 | 2 | -1/+8 |
| | |||||
* | yuzu: Update license text to be consistent across project. | bunnei | 2018-01-13 | 4 | -4/+4 |
| | |||||
* | IPC: Make DuplicateSession return the Domain instead of the Session if the request was made on a Domain interface. | Subv | 2018-01-07 | 1 | -1/+5 |
| | |||||
* | IPC: Corrected some command headers in the IPC Controller interface. | Subv | 2018-01-07 | 1 | -4/+2 |
| | |||||
* | IPC: Take the number of domain objects as a parameter in MakeBuilder. | Subv | 2018-01-07 | 1 | -2/+2 |
| | |||||
* | SM: Fixed connecting to services with an 8-byte name, like appletOE. | Subv | 2018-01-07 | 1 | -12/+4 |
| | |||||
* | IPC: Fixed pushing ResultCodes into the command buffer. | Subv | 2018-01-07 | 1 | -2/+2 |
| | | | | They should have 32 bits of padding after the error code now. | ||||
* | IPC Cleanup: Remove 3DS-specific code and translate copy, move and domain objects in IPC requests. | Subv | 2018-01-07 | 2 | -2/+2 |
| | | | | Popping objects from the buffer is still not implemented. | ||||
* | IPC: Skip the entire u64 of the command id when receiving an IPC request. | Subv | 2018-01-07 | 1 | -14/+3 |
| | | | | Service code now doesn't have to deal with this. | ||||
* | controller: Implement DuplicateSession. | bunnei | 2017-12-29 | 2 | -9/+11 |
| | |||||
* | kernel: Fix implementation of ConvertSessionToDomain. | bunnei | 2017-12-29 | 1 | -12/+6 |
| | |||||
* | service: Clean up apm/lm/applet_oe/controller/sm ctor/dtor. | bunnei | 2017-12-28 | 4 | -8/+4 |
| | |||||
* | hle: Use Switch formatted result codes. | bunnei | 2017-11-01 | 1 | -13/+5 |
| | |||||
* | hle: Implement ConvertSessionToDomain, various cleanups. | bunnei | 2017-10-15 | 3 | -10/+28 |
| | |||||
* | hle: Add service stubs for apm and appletOE. | bunnei | 2017-10-15 | 1 | -1/+1 |
| | |||||
* | hle: Initial implementation of NX service framework and IPC. | bunnei | 2017-10-15 | 6 | -280/+168 |
| | |||||
* | Merge remote-tracking branch 'upstream/master' into nx | bunnei | 2017-10-10 | 4 | -2/+34 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # src/core/CMakeLists.txt # src/core/arm/dynarmic/arm_dynarmic.cpp # src/core/arm/dyncom/arm_dyncom.cpp # src/core/hle/kernel/process.cpp # src/core/hle/kernel/thread.cpp # src/core/hle/kernel/thread.h # src/core/hle/kernel/vm_manager.cpp # src/core/loader/3dsx.cpp # src/core/loader/elf.cpp # src/core/loader/ncch.cpp # src/core/memory.cpp # src/core/memory.h # src/core/memory_setup.h | ||||
| * | HLE/SRV: Implemented RegisterService. | Subv | 2017-09-24 | 4 | -1/+33 |
|/ | | | | Now system modules can do more than just crash immediately on startup. | ||||
* | ResultVal: Remove MoveFrom() | Yuri Kunde Schlesner | 2017-06-19 | 1 | -2/+2 |
| | | | | | Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue. | ||||
* | Service/sm: Convert srv: to use IPC helpers | Yuri Kunde Schlesner | 2017-06-11 | 1 | -49/+56 |
| | |||||
* | Service/sm: Convert 'srv:' to ServiceFramework | Yuri Kunde Schlesner | 2017-06-09 | 4 | -49/+72 |
| | |||||
* | Service: Remove unnecessary includes from service.h | Yuri Kunde Schlesner | 2017-06-06 | 2 | -0/+4 |
| | | | | | This has a huge fallout in terms of needing to fix other files because all service implementations included that file. | ||||
* | Service: Make service registration part of the sm implementation | Yuri Kunde Schlesner | 2017-06-06 | 3 | -14/+138 |
| | | | | Also enhances the GetServiceHandle implementation to be more accurate. | ||||
* | Service/sm: Use an actual semaphore for the notification semaphore | Yuri Kunde Schlesner | 2017-06-06 | 1 | -8/+9 |
| | | | | | An Event was used way back then when we didn't have proper working semaphores. Our Semaphore implementation is good enough now. | ||||
* | Service: Move SRV interface to a new sm/ subdirectory | Yuri Kunde Schlesner | 2017-06-06 | 2 | -0/+213 |
This will contain the implementation of the sm (Service Manager) system module. |