aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/sm
AgeCommit message (Collapse)Author
2020-04-29Don't fail silently for vi, sm, set and ns servicesDavid Marcec
2020-03-23sm/controller: Increase PointerBufferSizeFearlessTobi
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.
2019-11-28kernel: Implement a more accurate IPC dispatch.bunnei
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-03-11kernel/server_port: Make data members privateLioncash
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).
2019-03-05kernel/server_session: Make data members privateLioncash
Makes it much nicer to locally reason about server session behavior, as part of its functionality isn't placed around other classes.
2018-12-18service/sm: Improve debug log for RegisterServiceLioncash
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.
2018-12-06hle/service, hle/sm: Compress usages of MakeResult()Lioncash
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.
2018-12-06hle/service, hle/sm: Use structured bindings where applicableLioncash
Gets rid of the need to keep the variables separate from their actual initialization spots.
2018-11-29Merge pull request #1801 from ogniK5377/log-before-executebunnei
Changed logging to be "Log before execution", Added more error logging, all services/svc should now log on some level
2018-11-26Changed logging to be "Log before execution", Added more error logging, all ↵David Marcec
services should now log on some level
2018-11-24service/sm: Take std::string by const reference in UnregisterServiceLioncash
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.
2018-11-03sm: Implement RegisterService and UnregisterServiceZach Hilman
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.
2018-10-06Ported #4296 from citraDavid Marcec
This will allow us to easily remove the use of "NFC" in "System"
2018-09-25service: Add missing headers inclusions where applicableLioncash
Gets rid of a few indirect inclusions.
2018-09-19Removed the use of rp.MakeBuilderDavid Marcec
Due to keeping the code style consistent in the yuzu codebase. `rb = rp.MakeBuilder(...)` was replaced with `rb{ctx, ...}`
2018-09-14services/sm: Amend error code constantsLioncash
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.
2018-09-06core/core: Remove unnecessary sm/controller includeLioncash
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.
2018-08-28kernel: Eliminate kernel global stateLioncash
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.
2018-08-15Merge pull request #1080 from lioncash/retbunnei
sm/controller: Correct return value of QueryPointerBufferSize
2018-08-15kernel/server_session: Add IsSession() member functionLioncash
Allows querying the inverse of IsDomain() to make things more readable. This will likely also be usable in the event of implementing ConvertDomainToSession().
2018-08-15sm/controller: Correct return value of QueryPointerBufferSizeLioncash
This should be returning a u16 according to Switch Brew.
2018-08-01kernel: Move object class to its own source filesLioncash
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.
2018-07-19hle/service: Make constructors explicit where applicableLioncash
Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services.
2018-07-02Update clang formatJames Rowe
2018-07-02Rename logging macro back to LOG_*James Rowe
2018-05-02general: Make formatting of logged hex values more straightforwardLioncash
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).
2018-04-24sm: Move logging macros over to new fmt-compatible onesLioncash
2018-04-20core: Relocate g_service_manager to the System classLioncash
Converts the service manager from a global into an instance-based variable.
2018-04-19service: Use nested namespace specifiers where applicableLioncash
Tidies up namespace declarations
2018-02-05Dont call UNIMPLEMENTED for 'empty services', just return error codeDavid Marcec
2018-02-03controller: DuplicateSession should return a ClientSession.bunnei
2018-01-24ResponseBuilder: Use a bit field for customizing instead of always_move_handles.bunnei
2018-01-24hle: Rename RequestBuilder to ResponseBuilder.bunnei
2018-01-24service: Fix all incorrect IPC response headers.bunnei
2018-01-24hle: Integrate Domain handling into ServerSession.bunnei
2018-01-24hle: Remove Domain and SyncObject kernel objects.bunnei
2018-01-19Added CreateSharedMemory & UNIMPLEMENTED() for non existent services. (#113)David
* Added svcCreateSharedMemory * Services which are not implemented now throw UNIMPLEMENTED() * clang-format * changed perms to u32 * removed camelcase
2018-01-17controller: Use DuplicateSession for DuplicateSessionEx.bunnei
2018-01-13yuzu: Update license text to be consistent across project.bunnei
2018-01-07IPC: Make DuplicateSession return the Domain instead of the Session if the ↵Subv
request was made on a Domain interface.
2018-01-07IPC: Corrected some command headers in the IPC Controller interface.Subv
2018-01-07IPC: Take the number of domain objects as a parameter in MakeBuilder.Subv
2018-01-07SM: Fixed connecting to services with an 8-byte name, like appletOE.Subv
2018-01-07IPC: Fixed pushing ResultCodes into the command buffer.Subv
They should have 32 bits of padding after the error code now.
2018-01-07IPC Cleanup: Remove 3DS-specific code and translate copy, move and domain ↵Subv
objects in IPC requests. Popping objects from the buffer is still not implemented.
2018-01-07IPC: Skip the entire u64 of the command id when receiving an IPC request.Subv
Service code now doesn't have to deal with this.
2017-12-29controller: Implement DuplicateSession.bunnei
2017-12-29kernel: Fix implementation of ConvertSessionToDomain.bunnei
2017-12-28service: Clean up apm/lm/applet_oe/controller/sm ctor/dtor.bunnei