diff options
author | Liam <byteslice@airmail.cc> | 2023-02-23 21:49:42 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-03-01 16:42:45 +0100 |
commit | c4ba088a5df13ff4b4d8853216231d690f2c79c0 (patch) | |
tree | 342ac4bde84bf135918bf425b5271a3599d572db /src/core/hle/kernel/init/init_slab_setup.cpp | |
parent | kernel: simplify AddressSpaceInfo, update values (diff) | |
download | yuzu-c4ba088a5df13ff4b4d8853216231d690f2c79c0.tar yuzu-c4ba088a5df13ff4b4d8853216231d690f2c79c0.tar.gz yuzu-c4ba088a5df13ff4b4d8853216231d690f2c79c0.tar.bz2 yuzu-c4ba088a5df13ff4b4d8853216231d690f2c79c0.tar.lz yuzu-c4ba088a5df13ff4b4d8853216231d690f2c79c0.tar.xz yuzu-c4ba088a5df13ff4b4d8853216231d690f2c79c0.tar.zst yuzu-c4ba088a5df13ff4b4d8853216231d690f2c79c0.zip |
Diffstat (limited to 'src/core/hle/kernel/init/init_slab_setup.cpp')
-rw-r--r-- | src/core/hle/kernel/init/init_slab_setup.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/kernel/init/init_slab_setup.cpp b/src/core/hle/kernel/init/init_slab_setup.cpp index be52405c6..5e4090e2b 100644 --- a/src/core/hle/kernel/init/init_slab_setup.cpp +++ b/src/core/hle/kernel/init/init_slab_setup.cpp @@ -33,6 +33,9 @@ namespace Kernel::Init { +// For macro convenience. +using KThreadLockInfo = KThread::LockWithPriorityInheritanceInfo; + #define SLAB_COUNT(CLASS) kernel.SlabResourceCounts().num_##CLASS #define FOREACH_SLAB_TYPE(HANDLER, ...) \ @@ -54,7 +57,8 @@ namespace Kernel::Init { HANDLER(KResourceLimit, (SLAB_COUNT(KResourceLimit)), ##__VA_ARGS__) \ HANDLER(KEventInfo, (SLAB_COUNT(KThread) + SLAB_COUNT(KDebug)), ##__VA_ARGS__) \ HANDLER(KDebug, (SLAB_COUNT(KDebug)), ##__VA_ARGS__) \ - HANDLER(KSecureSystemResource, (SLAB_COUNT(KProcess)), ##__VA_ARGS__) + HANDLER(KSecureSystemResource, (SLAB_COUNT(KProcess)), ##__VA_ARGS__) \ + HANDLER(KThreadLockInfo, (SLAB_COUNT(KThread)), ##__VA_ARGS__) namespace { |