Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | hle: kernel: hle_ipc: Fix outgoing IPC response size calculation. | bunnei | 2021-05-11 | 1 | -0/+1 |
| | |||||
* | WORKAROUND: temp. disable session resource limits while we work out issues | bunnei | 2021-05-11 | 1 | -2/+2 |
| | |||||
* | core: hle: ipc_helpers: Fix cast on raw_data_size calculation. | bunnei | 2021-05-11 | 1 | -1/+1 |
| | |||||
* | hle: ipc_helpers: Reserve session resource when we create a KSession. | bunnei | 2021-05-11 | 1 | -0/+5 |
| | |||||
* | hle: ipc_helpers: Update IPC response generation for TIPC. | bunnei | 2021-05-11 | 1 | -17/+31 |
| | |||||
* | kernel: Eliminate variable shadowing | Lioncash | 2021-05-08 | 1 | -10/+10 |
| | | | | | Now that the large kernel refactor is merged, we can eliminate the remaining variable shadowing cases. | ||||
* | hle: kernel: Remove deprecated Object class. | bunnei | 2021-05-06 | 1 | -17/+0 |
| | |||||
* | hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject. | bunnei | 2021-05-06 | 1 | -2/+2 |
| | |||||
* | hle: kernel: Migrate KClientPort to KAutoObject. | bunnei | 2021-05-06 | 1 | -1/+1 |
| | |||||
* | hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject. | bunnei | 2021-05-06 | 1 | -6/+6 |
| | |||||
* | hle: ipc_helpers: Add methods for copy/move references. | bunnei | 2021-05-06 | 1 | -2/+24 |
| | |||||
* | hle: kernel: Refactor IPC interfaces to not use std::shared_ptr. | bunnei | 2021-05-06 | 1 | -10/+10 |
| | |||||
* | hle: Type check ResponseBuilder::Push arguments, and fix use in vi.cpp | comex | 2020-12-07 | 1 | -32/+35 |
| | | | | | | | | | | | | - Add a type check so that calling Push with an invalid type produces a compile error rather than a linker error. - vi.cpp was calling Push with a variable of type `std::size_t`. There's no explicit overload for `size_t`, but there is one for `u64`, which on most platforms is the same type as `size_t`. On macOS, however, it isn't: both types are 64 bits, but `size_t` is `unsigned long` and `u64` is `unsigned long long`. Regardless, it makes more sense to explicitly use `u64` here instead of `size_t`. | ||||
* | ipc_helpers: Remove usage of the global system instance | Lioncash | 2020-11-08 | 1 | -6/+3 |
| | | | | | | | | | Resolves numerous deprecation warnings throughout the codebase due to inclusion of this header. Now building core should be significantly less noisy (and also relying on less global state). This also uncovered quite a few modules that were relying on indirect includes, which have also been fixed. | ||||
* | Revert "core: Fix clang build" | bunnei | 2020-10-21 | 1 | -2/+2 |
| | |||||
* | core: Fix clang build | Lioncash | 2020-10-18 | 1 | -2/+2 |
| | | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795 | ||||
* | core/CMakeLists: Make some warnings errors | Lioncash | 2020-10-13 | 1 | -9/+10 |
| | | | | | | | | | 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. | ||||
* | ipc_helpers: Only allow trivially copyable objects with PushRaw() and PopRaw() | Lioncash | 2020-08-05 | 1 | -0/+4 |
| | | | | | | It's undefined behavior to use non-trivially copyable objects with std::memcpy, so we can add asserts to catch usages of these at compile-time. | ||||
* | kernel: Implement a more accurate IPC dispatch. | bunnei | 2019-11-28 | 1 | -3/+3 |
| | |||||
* | kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154) | bunnei | 2019-11-25 | 1 | -8/+8 |
| | | | | | | * 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. | ||||
* | ipc_helpers: Amend floating-point type in Pop<double> specialization | Lioncash | 2019-05-19 | 1 | -1/+1 |
| | | | | | Currently, this overload isn't used, so this wasn't actually hit in any code, only the float overload is used. | ||||
* | kernel/server_session: Return a std::pair from CreateSessionPair() | Lioncash | 2019-04-06 | 1 | -3/+1 |
| | | | | | | Keeps the return type consistent with the function name. While we're at it, we can also reduce the amount of boilerplate involved with handling these by using structured bindings. | ||||
* | ipc_helpers: Allow pushing and popping floating-point values | Lioncash | 2019-03-16 | 1 | -0/+30 |
| | | | | | Certain values that are passed through the IPC buffer are actually floating point values, not solely integral values. | ||||
* | Merge pull request #2223 from lioncash/error | bunnei | 2019-03-13 | 1 | -0/+3 |
|\ | | | | | core/hle/result: Tidy up the base error code result header. | ||||
| * | core/hle/result: Relocate IPC error code to ipc_helpers | Lioncash | 2019-03-10 | 1 | -0/+3 |
| | | | | | | | | | | | | Relocates the error code to where it's most related, similar to how all the other error codes are. Previously we were including a non-generic error in the main result code header. | ||||
* | | Merge pull request #2166 from lioncash/vi-init-service | bunnei | 2019-03-13 | 1 | -0/+15 |
|\ \ | |/ |/| | service/vi: Unstub GetDisplayService | ||||
| * | core/ipc_helper: Allow popping all signed value types with RequestParser | Lioncash | 2019-02-27 | 1 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | | There's no real reason this shouldn't be allowed, given some values sent via a request can be signed. This also makes it less annoying to work with popping enum values, given an enum class with no type specifier will work out of the box now. It's also kind of an oversight to allow popping s64 values, but nothing else. | ||||
* | | kernel/hle_ipc: Convert std::shared_ptr IPC header instances to std::optional | Lioncash | 2019-03-08 | 1 | -1/+1 |
|/ | | | | | | | | | There's no real need to use a shared lifetime here, since we don't actually expose them to anything else. This is also kind of an unnecessary use of the heap given the objects themselves are so small; small enough, in fact that changing over to optionals actually reduces the overall size of the HLERequestContext struct (818 bytes to 808 bytes). | ||||
* | hle/ipc_helpers: Fix clang-format warnings | Lioncash | 2019-01-30 | 1 | -1/+0 |
| | |||||
* | hle/ipc_helpers: Allow pushing signed values | Lioncash | 2019-01-29 | 1 | -0/+22 |
| | | | | | This is kind of a large hole in the API, given we allow popping signed values. This fixes that. | ||||
* | core/kernel: Remove unnecessary inclusions | Lioncash | 2019-01-01 | 1 | -1/+1 |
| | | | | Gets rid of a few unnecessary header dependencies in some source files. | ||||
* | hle_ipc: Add member function for querying the existence of a domain header | Lioncash | 2018-10-30 | 1 | -2/+1 |
| | | | | Gets rid of the need to call the getter and then check for null. | ||||
* | Removed MakeBuilder as it's not needed anymore | David Marcec | 2018-09-19 | 1 | -7/+0 |
| | |||||
* | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 2018-09-15 | 1 | -6/+6 |
| | |||||
* | 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. | ||||
* | kernel: Move object class to its own source files | Lioncash | 2018-08-02 | 1 | -2/+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. | ||||
* | Merge pull request #800 from lioncash/set | bunnei | 2018-07-25 | 1 | -0/+8 |
|\ | | | | | set_sys: Implement SetColorSetId() | ||||
| * | ipc_helper: Add helper member function for popping enum values to RequestParser | Lioncash | 2018-07-24 | 1 | -0/+8 |
| | | |||||
* | | hle_ipc: Make constructors explicit where applicable | Lioncash | 2018-07-24 | 1 | -11/+12 |
| | | |||||
* | | ipc_helpers: Make member variables of ResponseBuilder private | Lioncash | 2018-07-24 | 1 | -5/+6 |
|/ | | | | These aren't used externally at all, so they can be made private. | ||||
* | ipc_helpers: Add PushEnum() member function to ResponseBuilder | Lioncash | 2018-07-20 | 1 | -0/+19 |
| | | | | | | | | | | | | | | | | | | | | Allows pushing strongly-typed enum members without the need to always cast them at the call sites. Note that we *only* allow strongly-typed enums in this case. The reason for this is that strongly typed enums have a guaranteed defined size, so the size of the data being pushed is always deterministic. With regular enums this can be a little more error-prone, so we disallow them. This function simply uses the underlying type of the enum to determine the size of the data. For example, if an enum is defined as: enum class SomeEnum : u16 { SomeEntry }; if PushEnum(SomeEnum::SomeEntry); is called, then it will push a u16-size amount of data. | ||||
* | ipc: Add support for PopIpcInterface() method. | bunnei | 2018-05-02 | 1 | -0/+7 |
| | | | | - This can be used for domain objects as inputs to service functions. | ||||
* | Fix: change check for domain order and existance of domain message header | mailwl | 2018-02-20 | 1 | -1/+2 |
| | |||||
* | IPC: add domain header to response if only it exists in request | mailwl | 2018-02-20 | 1 | -1/+1 |
| | |||||
* | ResponseBuilder: Use a bit field for customizing instead of always_move_handles. | bunnei | 2018-01-25 | 1 | -9/+18 |
| | |||||
* | hle: Rename RequestBuilder to ResponseBuilder. | bunnei | 2018-01-25 | 1 | -20/+21 |
| | |||||
* | ipc_helpers: Make interface domain agnostic and add header validation. | bunnei | 2018-01-25 | 1 | -24/+46 |
| | |||||
* | hle: Integrate Domain handling into ServerSession. | bunnei | 2018-01-25 | 1 | -3/+3 |
| | |||||
* | hle: Remove Domain and SyncObject kernel objects. | bunnei | 2018-01-25 | 1 | -1/+0 |
| | |||||
* | IPC: Don't create an unnecessary port when using PushIpcInterface outside of a domain. | Subv | 2018-01-22 | 1 | -4/+5 |
| | |||||
* | fsp_srv: Various improvements to IStorage:Read implementation. | bunnei | 2018-01-21 | 1 | -0/+5 |
| | |||||
* | Stub PopLaunchParameter and implement Buffer C Descriptors reading on hle_ipc (#96) | gdkchan | 2018-01-18 | 1 | -0/+4 |
| | | | | | | | | | | * Stub PopLaunchParameter and implement Buffer C Descriptors reading * Address PR feedback * Ensure we push a u64 not a size_t * Fix formatting | ||||
* | IPC: Push domain objects as move handles when not in a domain. | Subv | 2018-01-17 | 1 | -2/+20 |
| | |||||
* | IPC: Allow passing arguments to the Interfaces when using PushIpcInterface | Subv | 2018-01-11 | 1 | -3/+3 |
| | |||||
* | IPC: Take the number of domain objects as a parameter in MakeBuilder. | Subv | 2018-01-07 | 1 | -2/+4 |
| | |||||
* | IPC: Fixed pushing ResultCodes into the command buffer. | Subv | 2018-01-07 | 1 | -5/+7 |
| | | | | They should have 32 bits of padding after the error code now. | ||||
* | IPC: Add functions to read the input move/copy objects from an IPC request. | Subv | 2018-01-07 | 1 | -0/+16 |
| | |||||
* | IPC Cleanup: Remove 3DS-specific code and translate copy, move and domain objects in IPC requests. | Subv | 2018-01-07 | 1 | -215/+25 |
| | | | | Popping objects from the buffer is still not implemented. | ||||
* | IPC: Use the correct size when pushing raw data to the command buffer and fixed pushing domain objects. | Subv | 2018-01-07 | 1 | -5/+14 |
| | | | | Domain object ids are always stored immediately after the raw data. | ||||
* | kernel: Fix implementation of ConvertSessionToDomain. | bunnei | 2017-12-29 | 1 | -0/+14 |
| | |||||
* | ipc_helpers: Fix alignment (was wrong as a result of a dynarmic bug). | bunnei | 2017-10-18 | 1 | -3/+4 |
| | |||||
* | hle: Implement ConvertSessionToDomain, various cleanups. | bunnei | 2017-10-15 | 1 | -1/+1 |
| | |||||
* | hle: Initial implementation of NX service framework and IPC. | bunnei | 2017-10-15 | 1 | -71/+51 |
| | |||||
* | Fixed type conversion ambiguity | Huw Pascoe | 2017-09-30 | 1 | -6/+6 |
| | |||||
* | Kernel: Allow clearing request_objects to re-use buffer space | Yuri Kunde Schlesner | 2017-06-11 | 1 | -0/+3 |
| | | | | | Reduces the necessary allocation to max(in_handles, out_handles) rather than (in_handles + out_handles). | ||||
* | IPC: Add Pop/PushObjects methods to RequestParser/Builder | Yuri Kunde Schlesner | 2017-06-11 | 1 | -10/+103 |
| | | | | | These use the context functions to create and look-up handles for the user. | ||||
* | IPC: Add basic HLERequestContext support to RequestParser/Builder | Yuri Kunde Schlesner | 2017-06-11 | 1 | -1/+32 |
| | |||||
* | Kernel: Move HandleTable to a separate file | Yuri Kunde Schlesner | 2017-05-30 | 1 | -0/+2 |
| | |||||
* | IPCHelper Skip method + address comments for apt | Lectem | 2017-03-18 | 1 | -1/+7 |
| | |||||
* | fix #2560 and other comments | Lectem | 2017-03-18 | 1 | -2/+2 |
| | |||||
* | move push out of class body and add u8 u16 bool specializations | Lectem | 2017-03-18 | 1 | -46/+106 |
| | |||||
* | refactor APT service to use the new IPC helpers | Lectem | 2017-03-18 | 1 | -0/+12 |
| | |||||
* | fix wwylele's comment and use typename in templates | Lectem | 2017-02-05 | 1 | -4/+4 |
| | |||||
* | move Pop methods out of class body | Lectem | 2016-12-26 | 1 | -72/+88 |
| | |||||
* | IPC helpers | Lectem | 2016-12-26 | 1 | -0/+259 |