summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sm/sm.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #12327 from liamwhite/tipcliamwhite2023-12-111-5/+20
|\ | | | | sm:: fix tipc deserialization
| * sm:: fix tipc deserializationLiam2023-12-101-5/+20
| |
* | Merge pull request #12321 from liamwhite/ro2liamwhite2023-12-111-2/+4
|\ \ | |/ |/| ro: add separate ro service
| * service: use interface factory in server managerLiam2023-12-091-2/+4
| |
* | kernel: implement remaining IPC syscallsLiam2023-12-061-2/+0
|/
* core: remove ResultVal typeLiam2023-08-081-20/+23
|
* kernel: match calls to Register and UnregisterLiam2023-04-301-0/+3
|
* kernel: convert KPort, KSessionLiam2023-03-131-2/+2
|
* hle: rename legacy errors to ResultsLiam2023-03-071-12/+12
|
* service: move hle_ipc from kernelLiam2023-03-011-9/+9
|
* sm:: fix lingering session initialization issuesLiam2023-02-211-2/+7
|
* sm:: support service registration deferralLiam2023-02-211-3/+26
|
* service: refactor server architectureLiam2023-02-211-15/+17
| | | | Converts services to have their own processes
* sm:: avoid excessive port recreationLiam2022-10-311-14/+17
|
* kernel: invert session request handling flowLiam2022-10-311-5/+8
|
* kernel: more complete fix for KPort reference countingLiam2022-10-311-3/+4
|
* k_server_session: fix crashesLiam2022-10-301-1/+0
|
* k_server_session: preliminary support for userspace server sessionsLiam2022-10-121-1/+2
|
* core: Replace all instances of ResultCode with Resultgerman772022-06-271-9/+9
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | 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.bunnei2022-04-081-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.bunnei2022-04-081-6/+1
|
* hle: service: Add option for service interfaces to create or use the default thread.bunnei2022-04-021-1/+1
|
* core: hle: service: sm: Fix KPort reference count.bunnei2022-03-151-0/+2
|
* core: Remove unused includesameerj2021-11-041-2/+0
|
* general: Remove MakeResult helpersMorph2021-11-021-2/+2
| | | | This is made obsolete by the presence of implicit constructors.
* hle: service: sm: Refactor to better manage ports.bunnei2021-07-211-30/+35
|
* service: Append service name prefix to common filenamesMorph2021-07-141-1/+1
|
* hle: service: sm: Remove redundant session reservation, etc.bunnei2021-06-101-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.bunnei2021-06-101-4/+4
|
* hle: kernel: Refactor to allocate a ServiceThread per service handler.bunnei2021-06-051-1/+1
| | | | | | - 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 ResultSuccessMorph2021-06-021-3/+3
| | | | Transition to PascalCase for result names.
* hle: kernel: Implement CloneCurrentObject and improve session management.bunnei2021-05-211-6/+6
|
* Revert "WORKAROUND: temp. disable session resource limits while we work out issues"bunnei2021-05-211-4/+4
| | | | This reverts commit fc086f93b2165b5c210cb7dcd6c18ebe17f1fd7b.
* WORKAROUND: temp. disable session resource limits while we work out issuesbunnei2021-05-111-4/+4
|
* hle: service: sm: Add TIPC support.bunnei2021-05-111-38/+60
| | | | - Fixes our error checking of names as well.
* hle: service: sm: GetService: Reserve session resource when we create a KSession.bunnei2021-05-111-0/+7
|
* hle: service: sm: Improve Initialize implementation.bunnei2021-05-111-0/+2
|
* hle: kernel: Remove deprecated Object class.bunnei2021-05-061-1/+1
|
* hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.bunnei2021-05-061-15/+16
|
* hle: kernel: Migrate KServerPort to KAutoObject.bunnei2021-05-061-7/+7
|
* hle: kernel: Migrate KClientPort to KAutoObject.bunnei2021-05-061-3/+7
|
* hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.bunnei2021-05-061-13/+9
|
* hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.bunnei2021-05-061-3/+5
|
* sm: Use proper names, update to 12.xgerman772021-04-091-4/+5
|
* core: hle: kernel: Update KSynchronizationObject.bunnei2021-01-111-3/+0
|
* service: Eliminate usages of the global system instanceLioncash2020-11-271-7/+7
| | | | | 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 validationLioncash2020-09-171-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 instanceLioncash2020-09-171-4/+3
|
* service: Remove two usages of the global system accessorLioncash2020-09-071-1/+1
| | | | Removes more instances of reliance on global state.
* General: Cleanup legacy code.Fernando Sahmkow2020-06-271-1/+1
|
* Don't fail silently for vi, sm, set and ns servicesDavid Marcec2020-04-291-3/+9
|
* kernel: Implement a more accurate IPC dispatch.bunnei2019-11-281-13/+20
|
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei2019-11-251-3/+3
| | | | | | * 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.
* service/sm: Improve debug log for RegisterServiceLioncash2018-12-191-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()Lioncash2018-12-061-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 applicableLioncash2018-12-061-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-executebunnei2018-11-291-1/+3
|\ | | | | 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 levelDavid Marcec2018-11-261-1/+3
| |
* | service/sm: Take std::string by const reference in UnregisterServiceLioncash2018-11-241-1/+1
|/ | | | | | | | 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 UnregisterServiceZach Hilman2018-11-041-2/+52
| | | 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.
* Removed the use of rp.MakeBuilderDavid Marcec2018-09-191-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 constantsLioncash2018-09-141-2/+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 includeLioncash2018-09-061-0/+1
| | | | | | | | | | 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 stateLioncash2018-08-291-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.
* Update clang formatJames Rowe2018-07-031-2/+1
|
* Rename logging macro back to LOG_*James Rowe2018-07-031-3/+3
|
* general: Make formatting of logged hex values more straightforwardLioncash2018-05-021-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 onesLioncash2018-04-241-5/+4
|
* core: Relocate g_service_manager to the System classLioncash2018-04-211-1/+3
| | | | | Converts the service manager from a global into an instance-based variable.
* service: Use nested namespace specifiers where applicableLioncash2018-04-201-4/+2
| | | | Tidies up namespace declarations
* Dont call UNIMPLEMENTED for 'empty services', just return error codeDavid Marcec2018-02-051-0/+2
|
* ResponseBuilder: Use a bit field for customizing instead of always_move_handles.bunnei2018-01-251-1/+2
|
* hle: Rename RequestBuilder to ResponseBuilder.bunnei2018-01-251-3/+3
|
* service: Fix all incorrect IPC response headers.bunnei2018-01-251-3/+3
|
* Added CreateSharedMemory & UNIMPLEMENTED() for non existent services. (#113)David2018-01-201-0/+1
| | | | | | | | | | | | * Added svcCreateSharedMemory * Services which are not implemented now throw UNIMPLEMENTED() * clang-format * changed perms to u32 * removed camelcase
* yuzu: Update license text to be consistent across project.bunnei2018-01-131-1/+1
|
* IPC: Take the number of domain objects as a parameter in MakeBuilder.Subv2018-01-071-2/+2
|
* SM: Fixed connecting to services with an 8-byte name, like appletOE.Subv2018-01-071-12/+4
|
* IPC: Fixed pushing ResultCodes into the command buffer.Subv2018-01-071-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.Subv2018-01-071-1/+1
| | | | Popping objects from the buffer is still not implemented.
* IPC: Skip the entire u64 of the command id when receiving an IPC request.Subv2018-01-071-14/+3
| | | | Service code now doesn't have to deal with this.
* service: Clean up apm/lm/applet_oe/controller/sm ctor/dtor.bunnei2017-12-281-2/+0
|
* hle: Implement ConvertSessionToDomain, various cleanups.bunnei2017-10-151-4/+3
|
* hle: Add service stubs for apm and appletOE.bunnei2017-10-151-1/+1
|
* hle: Initial implementation of NX service framework and IPC.bunnei2017-10-151-5/+86
|
* HLE/SRV: Implemented RegisterService.Subv2017-09-241-0/+4
| | | | Now system modules can do more than just crash immediately on startup.
* Service/sm: Convert 'srv:' to ServiceFrameworkYuri Kunde Schlesner2017-06-091-2/+12
|
* Service: Remove unnecessary includes from service.hYuri Kunde Schlesner2017-06-061-0/+1
| | | | | 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 implementationYuri Kunde Schlesner2017-06-061-0/+58
Also enhances the GetServiceHandle implementation to be more accurate.