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
0d62f30b00
hle: kernel: Rename SharedMemory to KSharedMemory.
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
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
Lioncash
b944edc85d
k_priority_queue: Unfold several declval usages
Given these are only used as function existence checks, we can simplify
some usages of declval, given they aren't particularly useful here.
Reduces a few template instantiations, which at most reduces compile
times a tiny bit.
5 years ago
Lioncash
31e6e58101
k_priority_queue: Simplify affinity mask type alias
We can make use of the _t variants of the templates to cut down on a
little bit of verbosity.
5 years ago
Lioncash
53aec1fe2d
k_priority_queue: Resolved reserved identifier
An identifier containing a starting underscore followed by a capital
letter is reserved by the standard. It's trivial to avoid this by moving
the underscore to the end of the identifier.
While the likelihood of clashing here being minimal, we can turn a
"should not break" scenario into a definitive "will not break" one, so
why not?.
5 years ago
Chloe Marcec
2c6e940493
Simplify limitableresource names
5 years ago
Chloe Marcec
64c3582705
Compile error
5 years ago
Chloe Marcec
9e4b2d60bc
Address issues
5 years ago
Chloe Marcec
ee333e063d
fix compile error
5 years ago
Chloe Marcec
56742c6222
cleanup commenting
5 years ago
Chloe Marcec
7791cfd960
Drop m_ from lock
5 years ago
Chloe Marcec
3bf62c7a8a
Move to GetGlobalTimeNs, fix GetTotalPhysicalMemoryAvailable
5 years ago
Chloe Marcec
3be1a565f8
kernel: Rewrite resource limit to be more accurate
Matches closer to hardware
5 years ago
bunnei
543e212554
hle: kernel: KLightLock: Fix several bugs.
5 years ago
bunnei
e24c6dab93
hle: kernel: KThread: Release thread resource on thread exit.
5 years ago
bunnei
10738839ad
yuzu: debugger: Ignore HLE threads.
5 years ago
bunnei
3856564727
hle: kernel: process: Add state lock.
5 years ago
bunnei
ff46ef7ea3
hle: kernel: threading: Fix bug with host thread naming.
5 years ago
bunnei
6ee8340a6b
hle: kernel: k_scheduler_lock: Cleanup.
5 years ago
bunnei
6e953f7f02
hle: kernel: Allocate a dummy KThread for each host thread, and use it for scheduling.
5 years ago
bunnei
37f74d8741
hle: kernel: k_scheduler: Use atomics for current_thread, etc.
5 years ago
bunnei
f6b10fad63
hle: kernel: k_scheduler: Fix for single core mode.
5 years ago
bunnei
0a1449e04b
kernel: Fix build errors.
5 years ago
bunnei
ca78f77827
hle: kernel: KScheduler: Introduce thread context_guard.
5 years ago
bunnei
cdd14b03e5
hle: kernel: Recode implementation of KThread to be more accurate.
5 years ago
bunnei
1470338458
kernel: svc_types: Add ThreadActivity.
5 years ago