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
bunnei
9e520e8f12
hle: kernel: Migrate SlabHeap to KSlabHeap.
5 years ago
bunnei
1d162f28d1
hle: kernel: Migrate MemoryLayout to KMemoryLayout.
5 years ago
bunnei
7ed5dd0d62
hle: kernel: Migrate AddressSpaceInfo to KAddressSpaceInfo.
5 years ago
bunnei
701ef616b2
hle: kernel: memory_manager: Rename AllocateContinuous to AllocateContinuous.
5 years ago
bunnei
f7a008d77f
hle: kernel: KSystemControl does not belong in Memory namespace.
5 years ago
bunnei
6a19086001
hle: kernel: memory: PageHeap: Migrate to KPageBitmap class.
5 years ago
bunnei
a02566136c
hle: kernel: Add KPageBitmap class.
5 years ago
bunnei
e7c33d1ad6
hle: kernel: system_control: Add function GenerateRandomU64.
5 years ago
bunnei
6da91da08e
hle: kernel: Add KSpinLock implementation.
5 years ago
bunnei
24e1e17a8a
core: memory: Add templated GetPointer methods.
5 years ago
bunnei
0d62f30b00
hle: kernel: Rename SharedMemory to KSharedMemory.
5 years ago
bunnei
f3345e84ad
core: core_timing_util: Optimize core timing math.
- Avoids a lot of unnecessary 128-bit math for imperceptible accuracy.
5 years ago
Morph
48cfc47050
core/CMakeLists: Add web_types.h
5 years ago
bunnei
d9a8060ce3
hle: service: ldn: IUserLocalCommunicationService: Improve the stub.
5 years ago
bunnei
51c13606d6
hle: service: ldn: IUserLocalCommunicationService: Indicate that LDN is disabled.
- Fixes crash on Pokemon Sword/Shield when pressing 'Y'.
5 years ago
bunnei
d25011c92f
hle: service: am: IStorageAccessor: Fix out of bounds error handling.
5 years ago
ameerj
3c37d66c28
Address PR feedback
Co-Authored-By: LC <712067+lioncash@users.noreply.github.com>
5 years ago
ameerj
ac265a72ce
nvdec cleanup
5 years ago
ameerj
ec9b6641b1
kernel: More accurately reserve and release resources
5 years ago
ameerj
5fa6b15215
kernel: KScopedReservation implementation
This implements KScopedReservation, allowing resource limit reservations to be more HW accurate, and release upon failure without requiring too many conditionals.
5 years ago
Chloe
37939482fb
kernel: Unify result codes ( #5890 )
* kernel: Unify result codes
Drop the usage of ERR_NAME convention in kernel for ResultName. Removed seperation between svc_results.h & errors.h as we mainly include both most of the time anyways.
* oops
* rename errors to svc_results
5 years ago
Morph
886043a6d2
software_keyboard: Implement Finalize request command
5 years ago
lat9nq
68f718943e
core: Add -fsized-dealloction as a Clang flag
Prevents a operator delete error when compiling with Clang 11.
5 years ago
Lioncash
0cd40fb523
bsd: Remove usage of optional emplace() with no arguments
Clang 12 currently falls over in the face of this.
5 years ago
Lioncash
1dab8acf5f
am/controller: Remove [[fallthrough]] from unreachable path
Prevents warnings on clang 12. This path is reachable on other
variations of the build that disable the unreachable macro.
5 years ago
Lioncash
d64ba58759
nfp: Correct uninitialized size being used within GetTagInfo()
We were previously the name of the object being initialized within its
own initializer, which results in uninitialized data being read.
5 years ago
german
a994a40467
hid: Implement GC controller
5 years ago
german
3f9eb56972
olsc: Stub GetSaveDataBackupSetting
5 years ago
german
52b79ac009
Add mouse panning
5 years ago
Chloe Marcec
9d5a56a40b
lm: Fix ReadLeb128
Fixes assertion on Bloodstained Ritual of the Night.
We would over read sometimes, this is fixed by checking if the top bit is set in the first iteration. We also lock the loop off to be only the max size of the type we can fit. Finally we changed an incorrect print of "DEBUG" to "TRACE" to reflect the proper log severity
5 years ago
Alessandro Astone
32d9a83f8e
pl_u: Fix read out of bounds
5 years ago
german
481cd86722
Make settings controller image change with controller input
5 years ago
Lioncash
40ab2b9348
k_address_arbiter: Unfold R_UNLESS macros
Allows for more descriptive error messages and also doesn't hide
control-path exit returns from the reader.
5 years ago
Lioncash
b8fc74d74d
k_address_arbiter: Remove unnecessary usages of std::addressof
This is a useful function in a generic context or with types that
overload unary operator&. However, primitives and pointers will never do
this, so we can opt for a more straightforward syntax.
5 years ago
Lioncash
7b9c58880f
k_address_arbiter: Remove dead code
This code is never used, so we can remove it. It's in version control,
so it can always be brought back when needed.
5 years ago
Lioncash
75a60a6e22
svc: Provide more detailed error logs for svc functions
Allows SVC calls to have much more informative information during error
cases. This also doesn't hide control flow returns from the reader.
5 years ago
bunnei
ea4f62615e
hle: kernel: Drop R_UNLESS_NOLOG in favor of expanded if-statement.
5 years ago
bunnei
546af64340
hle: kernel: KAddressArbiter: Remove noisy error log.
5 years ago
bunnei
eba3c59a61
hle: kernel: svc: Cleanup KEvent/KReadableEvent/KWritableEvent SVCs.
5 years ago
bunnei
ff3c7c068b
hle: kernel: Reimplement KReadableEvent and KWritableEvent.
5 years ago
bunnei
6bf80dfee0
hle: kernel: Implement KEvent.
5 years ago
bunnei
e9446d232f
hle: kernel: KAddressArbiter: Use R_UNLESS_NOLOG where applicable.
5 years ago
bunnei
3f942c01f0
hle: kernel: Rename WritableEvent to KWritableEvent.
5 years ago
bunnei
e86a7e3691
hle: kernel: Rename ReadableEvent to KReadableEvent.
5 years ago
Lioncash
756365386a
k_affinity_mask: Avoid implicit truncation to bool
This can cause compiler warnings. Instead, we can explicitly add a
boolean expression around it to naturally turn the result into a bool.
5 years ago