aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
AgeCommit message (Collapse)Author
2021-04-09Merge pull request #6156 from lioncash/lock-discardbunnei
kernel: Mark lock helper classes as [[nodiscard]]
2021-04-08Merge pull request #6155 from ameerj/kernel-12-rescntbunnei
kernel: Increase event and session counts
2021-04-08Merge pull request #6154 from lioncash/svcrange2bunnei
svc: Expand SVC tables
2021-04-07Amend bizarre clang-format suggestionsLioncash
2021-04-07k_scoped_scheduler_lock_and_sleep: Mark class as [[nodiscard]]Lioncash
Prevents logic bugs from slipping through.
2021-04-07k_scoped_lock: delete copy and move assignment operatorsLioncash
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).
2021-04-07k_scoped_lock: Mark class as [[nodiscard]]Lioncash
Prevents logic bugs of the kind described in the previous commit from slipping through.
2021-04-07k_scheduler: Mark KScopedSchedulerLock as [[nodiscard]]Lioncash
Prevents logic bugs like: KScopedSchedulerLock{kernel}; instead of: KScopedSchedulerLock lk{kernel}; from slipping through.
2021-04-07kernel: Increase event and session countsameerj
12.x increased the number of available sessions and event resource counts
2021-04-07svc: Expand SVC tablesLioncash
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.
2021-04-07process_capability: Handle extended SVC rangeLioncash
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.
2021-03-27hle: kernel: Initialize preemption task after schedulers.bunnei
- Fixes a startup crash that occurs if CoreTiming tries to preempt before kernel initialization completes.
2021-03-23hle: kernel: Breakup InitializeMemoryLayout.bunnei
2021-03-23hle: kernel: k_memory_region_type: Minor code cleanup.bunnei
2021-03-23hle: kernel: k_memory_region: Minor code cleanup.bunnei
2021-03-23hle: kernel: k_memory_layout: Use pair instead of tuple.bunnei
2021-03-23hle: kernel: k_system_control: Remove unnecessary inline.bunnei
2021-03-23common: common_sizes: Move sizes to the Common namespace.bunnei
2021-03-21hle: kernel: Merge KMemoryRegionAttr and KMemoryRegionType.bunnei
- Fixes clang errors with mixed enum arithmetic.
2021-03-21hle: kernel: Remove unused variable.bunnei
2021-03-21hle: kernel: k_memory_region_type: Remove extra ".bunnei
2021-03-21hle: kernel: k_memory_layout: Move KMemoryRegionAllocator out of global.bunnei
2021-03-21hle: kernel: k_memory_layout: Derive memory regions based on board layout.bunnei
2021-03-21common: common_sizes: Move Invalid to Size_* prefix and add missing values.bunnei
2021-03-21hle: kernel: k_memory_region: Refactor to simplify code.bunnei
2021-03-21hle: kernel: board: k_system_control: Extend to include memory region sizes.bunnei
2021-03-21hle: kernel: board: Add secure_monitor module.bunnei
2021-03-21common: Move common sizes to their own header for code reuse.bunnei
2021-03-21hle: kernel: k_address_space_info: Cleanup.bunnei
2021-03-21hle: kernel: Add k_trace module.bunnei
2021-03-21hle: kernel: KSystemControl: Update to reflect board-specific behavior.bunnei
2021-03-21hle: kernel: KMemoryManager: Add CalculateManagementOverheadSize.bunnei
2021-03-21hle: kernel: KMemoryManager: Add aliases.bunnei
2021-03-21hle: kernel: Add architecture and board specific memory regions.bunnei
2021-03-21hle: kernel: KMemoryRegion: Derive region values.bunnei
2021-03-21hle: kernel: Migrate some code from Common::SpinLock to KSpinLock.bunnei
2021-03-21hle: kernel: Add initial KMemoryRegionType module.bunnei
2021-03-21hle: kernel: Move KMemoryRegion to its own module and update.bunnei
2021-03-07common: Fiber: use a reference for YieldTo.bunnei
- Fixes another small leak.
2021-03-05hle: kernel: KThread: Rework dummy threads & fix memory leak.bunnei
- 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.
2021-03-05Revert "core: Switch to unique_ptr for usage of Common::Fiber."bunnei
2021-02-27core: Switch to unique_ptr for usage of Common::Fiber.bunnei
- 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.
2021-02-27Merge pull request #5953 from bunnei/memory-refactor-1bunnei
Kernel Rework: Memory updates and refactoring (Part 1)
2021-02-20kernel: Fix resource release exception on exitameerj
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.
2021-02-18hle: kernel: Migrate PageHeap/PageTable to KPageHeap/KPageTable.bunnei
2021-02-18hle: kernel: Migrate MemoryManager to KMemoryManager.bunnei
2021-02-18hle: kernel: Migrate PageLinkedList to KPageLinkedList.bunnei
2021-02-18hle: kernel: Migrate to KMemoryBlock, KMemoryBlockManager, and others.bunnei
2021-02-18hle: kernel: Migrate SlabHeap to KSlabHeap.bunnei
2021-02-18hle: kernel: Migrate MemoryLayout to KMemoryLayout.bunnei