summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sm/sm.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-09-14services/sm: Amend error code constantsLioncash1-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.
2018-09-06core/core: Remove unnecessary sm/controller includeLioncash1-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.
2018-08-29kernel: Eliminate kernel global stateLioncash1-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.
2018-07-03Update clang formatJames Rowe1-2/+1
2018-07-03Rename logging macro back to LOG_*James Rowe1-3/+3
2018-05-02general: Make formatting of logged hex values more straightforwardLioncash1-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).
2018-04-24sm: Move logging macros over to new fmt-compatible onesLioncash1-5/+4
2018-04-21core: Relocate g_service_manager to the System classLioncash1-1/+3
Converts the service manager from a global into an instance-based variable.
2018-04-20service: Use nested namespace specifiers where applicableLioncash1-4/+2
Tidies up namespace declarations
2018-02-05Dont call UNIMPLEMENTED for 'empty services', just return error codeDavid Marcec1-0/+2
2018-01-25ResponseBuilder: Use a bit field for customizing instead of always_move_handles.bunnei1-1/+2
2018-01-25hle: Rename RequestBuilder to ResponseBuilder.bunnei1-3/+3
2018-01-25service: Fix all incorrect IPC response headers.bunnei1-3/+3
2018-01-20Added CreateSharedMemory & UNIMPLEMENTED() for non existent services. (#113)David1-0/+1
* Added svcCreateSharedMemory * Services which are not implemented now throw UNIMPLEMENTED() * clang-format * changed perms to u32 * removed camelcase
2018-01-13yuzu: Update license text to be consistent across project.bunnei1-1/+1
2018-01-07IPC: Take the number of domain objects as a parameter in MakeBuilder.Subv1-2/+2
2018-01-07SM: Fixed connecting to services with an 8-byte name, like appletOE.Subv1-12/+4
2018-01-07IPC: Fixed pushing ResultCodes into the command buffer.Subv1-2/+2
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 objects in IPC requests.Subv1-1/+1
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.Subv1-14/+3
Service code now doesn't have to deal with this.
2017-12-28service: Clean up apm/lm/applet_oe/controller/sm ctor/dtor.bunnei1-2/+0
2017-10-15hle: Implement ConvertSessionToDomain, various cleanups.bunnei1-4/+3
2017-10-15hle: Add service stubs for apm and appletOE.bunnei1-1/+1
2017-10-15hle: Initial implementation of NX service framework and IPC.bunnei1-5/+86
2017-09-24HLE/SRV: Implemented RegisterService.Subv1-0/+4
Now system modules can do more than just crash immediately on startup.
2017-06-09Service/sm: Convert 'srv:' to ServiceFrameworkYuri Kunde Schlesner1-2/+12
2017-06-06Service: Remove unnecessary includes from service.hYuri Kunde Schlesner1-0/+1
This has a huge fallout in terms of needing to fix other files because all service implementations included that file.
2017-06-06Service: Make service registration part of the sm implementationYuri Kunde Schlesner1-0/+58
Also enhances the GetServiceHandle implementation to be more accurate.