german77
c19ad21ae8
hid: Implement SevenSixAxis and ConsoleSixAxisSensor
5 years ago
Morph
e3e6a11ab8
hle_ipc: Add helper functions to get copy/move handles
5 years ago
bunnei
a4c6712a4b
common: Move settings to common from core.
- Removes a dependency on core and input_common from common.
5 years ago
ameerj
2067115c78
k_resource_limit: Minor cleanup of member variables/headers
5 years ago
ameerj
5e85bc3d23
kernel/process: Replace process resource limit instance with the kernel's resource limit
This commit addresses the inaccurate behavior of kernel processes creating their own resource limit, rather than utilizing the kernel's system-wide resource limit instance.
5 years ago
Lioncash
0fb3773924
k_thread: Remove [[nodiscard]] attribute from ClearWaitCancelled()
This function has a void return value, so this attribute doesn't apply
to it.
5 years ago
Lioncash
530a5a1d09
Amend bizarre clang-format suggestions
5 years ago
Lioncash
1e964604bb
k_scoped_scheduler_lock_and_sleep: Mark class as [[nodiscard]]
Prevents logic bugs from slipping through.
5 years ago
Lioncash
c018769016
k_scoped_lock: delete copy and move assignment operators
If we delete the copy and move constructor, we should also be deleting
the copy and move assignment operators (and even if this were intended,
it would be pretty odd to not document why it's done this way).
5 years ago
Lioncash
bc30aa8249
k_scoped_lock: Mark class as [[nodiscard]]
Prevents logic bugs of the kind described in the previous commit from
slipping through.
5 years ago
Lioncash
97e2604575
k_scheduler: Mark KScopedSchedulerLock as [[nodiscard]]
Prevents logic bugs like:
KScopedSchedulerLock{kernel};
instead of:
KScopedSchedulerLock lk{kernel};
from slipping through.
5 years ago
ameerj
24900674b7
kernel: Increase event and session counts
12.x increased the number of available sessions and event resource counts
5 years ago
Lioncash
55fc808d64
svc: Expand SVC tables
12.x expanded the range of SVC entries from 0x7F to 0xBF (with all new
entries being unused), so we can expand it to also match.
5 years ago
Lioncash
03dda80e2b
process_capability: Handle extended SVC range
12.x extended the range of SVC IDs, so we need to expand the range of
bits that need to be tested.
The upside of this is that we can eliminate a range check, given the
whole range is used.
5 years ago
bunnei
cb7f2e5616
hle: kernel: Initialize preemption task after schedulers.
- Fixes a startup crash that occurs if CoreTiming tries to preempt before kernel initialization completes.
5 years ago
bunnei
10d6e9f32b
hle: kernel: Breakup InitializeMemoryLayout.
5 years ago
bunnei
fb91647bca
hle: kernel: k_memory_region_type: Minor code cleanup.
5 years ago
bunnei
4eac8703d2
hle: kernel: k_memory_region: Minor code cleanup.
5 years ago
bunnei
9032d21365
hle: kernel: k_memory_layout: Use pair instead of tuple.
5 years ago
bunnei
a32190d0c2
hle: kernel: k_system_control: Remove unnecessary inline.
5 years ago
bunnei
ab5995c7ae
common: common_sizes: Move sizes to the Common namespace.
5 years ago
bunnei
1d78190843
hle: kernel: Merge KMemoryRegionAttr and KMemoryRegionType.
- Fixes clang errors with mixed enum arithmetic.
5 years ago
bunnei
3ffbe50e7d
hle: kernel: Remove unused variable.
5 years ago
bunnei
fc5205fc84
hle: kernel: k_memory_region_type: Remove extra ".
5 years ago
bunnei
1996cae9cb
hle: kernel: k_memory_layout: Move KMemoryRegionAllocator out of global.
5 years ago
bunnei
343eaecd38
hle: kernel: k_memory_layout: Derive memory regions based on board layout.
5 years ago
bunnei
8d0ba7ee49
common: common_sizes: Move Invalid to Size_* prefix and add missing values.
5 years ago
bunnei
80688362cf
hle: kernel: k_memory_region: Refactor to simplify code.
5 years ago
bunnei
edbc505e52
hle: kernel: board: k_system_control: Extend to include memory region sizes.
5 years ago
bunnei
10265ad0e4
hle: kernel: board: Add secure_monitor module.
5 years ago
bunnei
28be8aec9a
common: Move common sizes to their own header for code reuse.
5 years ago
bunnei
01f04fee32
hle: kernel: k_address_space_info: Cleanup.
5 years ago
bunnei
f2e1441567
hle: kernel: Add k_trace module.
5 years ago
bunnei
5762517728
hle: kernel: KSystemControl: Update to reflect board-specific behavior.
5 years ago
bunnei
a439867f2c
hle: kernel: KMemoryManager: Add CalculateManagementOverheadSize.
5 years ago
bunnei
43a29b5803
hle: kernel: KMemoryManager: Add aliases.
5 years ago
bunnei
c17beefe3d
hle: kernel: Add architecture and board specific memory regions.
5 years ago
bunnei
3fb64da452
hle: kernel: KMemoryRegion: Derive region values.
5 years ago
bunnei
5872561077
hle: kernel: Migrate some code from Common::SpinLock to KSpinLock.
5 years ago
bunnei
541b4353e4
hle: kernel: Add initial KMemoryRegionType module.
5 years ago
bunnei
778e0f8ec1
hle: kernel: Move KMemoryRegion to its own module and update.
5 years ago
bunnei
8f7eb194af
common: Fiber: use a reference for YieldTo.
- Fixes another small leak.
5 years ago
bunnei
47af34003b
hle: kernel: KThread: Rework dummy threads & fix memory leak.
- Dummy threads are created on thread local storage for all host threads.
- Fixes a leak by removing creation of fibers, which are not applicable here.
5 years ago
bunnei
a5ab85ac37
Revert "core: Switch to unique_ptr for usage of Common::Fiber."
5 years ago
bunnei
51fb0a6f96
core: Switch to unique_ptr for usage of Common::Fiber.
- With using unique_ptr instead of shared_ptr, we have more explicit ownership of the context.
- Fixes a memory leak due to circular reference of the shared pointer.
5 years ago
ameerj
8e4c9c9852
kernel: Fix resource release exception on exit
After rewriting the resource limit, objects releasing reserved resources require a live kernel instance.
This commit fixes exceptions that occur due to the kernel being destroyed before some objects released their resources, allowing for a graceful exit.
5 years ago
bunnei
93e20867b0
hle: kernel: Migrate PageHeap/PageTable to KPageHeap/KPageTable.
5 years ago
bunnei
b1e27890e8
hle: kernel: Migrate MemoryManager to KMemoryManager.
5 years ago
bunnei
93109c870e
hle: kernel: Migrate PageLinkedList to KPageLinkedList.
5 years ago
bunnei
65e0178cc0
hle: kernel: Migrate to KMemoryBlock, KMemoryBlockManager, and others.
5 years ago