Morph
12c1766997
general: Replace RESULT_SUCCESS with ResultSuccess
Transition to PascalCase for result names.
5 years ago
Lioncash
646622ccd4
k_class_token: Use variable templates where applicable
Same behavior, less code.
5 years ago
Lioncash
7b2917b4e1
kernel: Add missing override specifiers
Over the course of the kernel refactoring a tiny bit of missing
overrides slipped through review, so we can add these.
While we're at it, we can remove redundant virtual keywords where
applicable as well.
5 years ago
Markus Wick
5a8cd1b118
Fix two GCC 11 warnings: Unneeded copies.
std::move created an unneeded copy.
iterating without reference also created copies.
5 years ago
Lioncash
16ff0161b3
k_thread: Move dereference after null check in Initialize()
Prevents a -Wnonnull warning on GCC.
5 years ago
bunnei
ee099b2697
hle: kernel: KSlabHeap: Allow host or guest allocations.
- Use host allocations for kernel memory, as this is not properly emulated yet.
- Use guest allocations for TLS, as this needs to be backed by DeviceMemory.
5 years ago
Markus Wick
3d2e80daed
core/arm_interface: Call SVC after end of dynarmic block.
So we can modify all of dynarmic states within SVC without ExceptionalExit.
Especially as the ExceptionalExit hack is dropped on upstream dynarmic.
5 years ago
Morph
ec28d3c439
kernel: process_capability: Add MapRegion capability
- Used by nx-hbloader
5 years ago
bunnei
6418a42884
hle: kernel: service_thread: Take reference to KServerSession on service request.
5 years ago
bunnei
e33ffdc555
hle: kernel: k_port: Use AcceptSession to ensure SessionList state is correct.
- Fixes a use-after-free, work-around until we fixup session/port management.
5 years ago
bunnei
b4fc2e52a2
hle: kernel: Use host memory allocations for KSlabMemory.
- There are some issues with the current workaround, we will just use host memory until we have a complete kernel memory implementation.
5 years ago
bunnei
7331bb9d8d
Revert "WORKAROUND: Do not use slab heap while we track down issues with resource management."
This reverts commit f2c26443f8 .
5 years ago
bunnei
f4fe71c1c9
hle: kernel: hle_ipc: Simplify incoming/outgoing move/copy/domain objects.
5 years ago
bunnei
7361eac10f
hle: kernel: Implement CloneCurrentObject and improve session management.
5 years ago
bunnei
c40e7593f5
Revert "WORKAROUND: temp. disable session resource limits while we work out issues"
This reverts commit fc086f93b2 .
5 years ago
Morph
7f78b17e20
KTransferMemory: Return size instead of size * PageSize in GetSize()
size is already the size in bytes. We do not need to multiply it by the page size
5 years ago
Morph
049769a0c9
hle_ipc: unsigned -> u32
This is more concise and consistent with the rest of the codebase.
5 years ago
Morph
81a5ecdb18
hle_ipc: Add a getter for PID
5 years ago
Lioncash
9a07ed53eb
core: Make variable shadowing a compile-time error
Now that we have most of core free of shadowing, we can enable the
warning as an error to catch anything that may be remaining and also
eliminate this class of logic bug entirely.
5 years ago
bunnei
12d569e483
hle: kernel: hle_ipc: Fix outgoing IPC response size calculation.
5 years ago
bunnei
fc086f93b2
WORKAROUND: temp. disable session resource limits while we work out issues
5 years ago
bunnei
f2c26443f8
WORKAROUND: Do not use slab heap while we track down issues with resource management.
5 years ago
bunnei
913971417e
hle: kernel: hle_ipc: Improve IPC code and add initial support for TIPC.
- Fixes our move handles implementation to actually move objects.
- Simplifies the traditional IPC path.
5 years ago
bunnei
da25a59866
hle: service: Implement IPC::CommandType::Close.
- This was not actually closing sessions before.
5 years ago
bunnei
f54ea749a4
hle: kernel: svc: Update ConnectToNamedPort to use new CreateNamedServicePort interface.
5 years ago
bunnei
c6de9657be
hle: kernel: Implement named service ports using service interface factory.
- This allows us to create a new interface each time ConnectToNamedPort is called, removing the assumption that these are static.
5 years ago
bunnei
75f23ad494
hle: kernel: KClientPort: Cleanup comment format.
5 years ago
bunnei
ed25191ee6
hle: kernel: Further cleanup and add TIPC helpers.
5 years ago
bunnei
d08bd3e062
hle: ipc_helpers: Update IPC response generation for TIPC.
5 years ago
german77
0c1bb46f0a
kernel: Delete unused files
5 years ago
Lioncash
2f62bae9e3
kernel: Eliminate variable shadowing
Now that the large kernel refactor is merged, we can eliminate the
remaining variable shadowing cases.
5 years ago
bunnei
d57b12193b
hle: kernel: KPageTable: CanContain should not be constexpr.
5 years ago
bunnei
b805ee653f
hle: kernel: Move slab resource counts to Kernel.
5 years ago
bunnei
2c4615f3a6
fixup! hle: kernel: Migrate more of KThread to KAutoObject.
5 years ago
bunnei
eae107d0e9
kernel: svc: Remove unused RetrieveResourceLimitValue function.
5 years ago
bunnei
da22def511
hle: kernel: Fix un/sign mismatch errors with NUM_CPU_CORES.
5 years ago
bunnei
f23760b1e1
fixup! hle: kernel: Add initial impl. of slab setup.
5 years ago
bunnei
1e983b19df
fixup! hle: kernel: Migrate to KHandleTable.
5 years ago
bunnei
ad5a5ef43f
fixup! hle: kernel: Migrate more of KThread to KAutoObject.
5 years ago
bunnei
9434603450
fixup! hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject.
5 years ago
bunnei
703d7aaab6
fixup! hle: kernel: Migrate to KHandleTable.
5 years ago
bunnei
9beb239634
fixup! hle: kernel: Add initial impl. of KLinkedList.
5 years ago
bunnei
2cdc7142b0
fixup! hle: kernel: Migrate to KHandleTable.
5 years ago
bunnei
34abe4a905
fixup! hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.
5 years ago
bunnei
f6d45b747e
fixup! hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.
5 years ago
bunnei
1b074b8984
fixup! hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.
5 years ago
bunnei
50d2dc3b51
fixup! hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.
5 years ago
bunnei
d23f9f75ff
fixup! hle: kernel: Migrate to KHandleTable.
5 years ago
bunnei
4356361faf
fixup! hle: kernel: Add initial impl. of KAutoObjectWithListContainer.
5 years ago
bunnei
51aa5a5364
fixup! hle: kernel: Add initial impl. of KAutoObjectWithListContainer.
5 years ago