Michael Scire
6dbdfa0384
kern: use optimized red black tree finds for remaining holdouts
2021-10-26 01:11:14 -07:00
Michael Scire
7749ecabc4
kern: devirtualize several KAutoObject functions
2021-10-26 01:11:14 -07:00
Michael Scire
89f01cb068
kern: KCacheHelper: better reflect nintendo coremask clearing logic
2021-10-26 01:11:14 -07:00
Michael Scire
d3ad53a525
kern: devirtualize remaining vcall for class token/dyncast
2021-10-26 01:11:13 -07:00
SciresM
823c0df6b9
kern: avoid constexpr init for many objects (avoids unnecessary memory clear) ( #1668 )
2021-10-26 01:11:13 -07:00
Michael Scire
00353a05e9
kern: use new AtomicRef, use Atomic<bool>
2021-10-26 01:11:13 -07:00
Michael Scire
0d1ec0739f
util: better match true std::atomic semantics
2021-10-26 01:11:13 -07:00
Michael Scire
d3b358bbb9
kern/util: use custom atomics wrapper to substantially improve codegen
2021-10-26 01:11:12 -07:00
Michael Scire
6f9d5ecd0d
kern: use 13.0.0 revised KLightLock logic
2021-10-26 01:11:12 -07:00
Michael Scire
c77900d598
kern: fix capability check for thread priorities
2021-10-26 01:11:12 -07:00
Michael Scire
d9d6d52575
kern: remove spurious assertion
2021-10-26 01:11:12 -07:00
Michael Scire
573769303b
kern: update scheduler for 13.0.0 change, fix some ctz/clz bugs
2021-10-26 01:11:11 -07:00
Michael Scire
2827f6300e
kern: fix use of plr vs plr_heap, fix close/unlock order in ArbitrateLock
2021-10-26 01:11:11 -07:00
Michael Scire
87e4f1b896
ams-libs: move -Wno-invalid-offsetof to cxxflags, not cflags
2021-10-26 01:11:11 -07:00
Michael Scire
99521b37ab
ams-libs: use nintendo_nx identifier for source file compat bpmp<->ccplex
2021-10-26 01:11:11 -07:00
Michael Scire
ea0de678ac
lr: fix EraseRedirection hang introduced by refactoring
2021-10-26 01:11:11 -07:00
Michael Scire
960c5c19f9
ams: improve offsetof style consistency
2021-10-26 01:11:10 -07:00
Michael Scire
191d2941b5
util: improve (and use) offsetof that's """standard compliant"""
2021-10-26 01:11:10 -07:00
Michael Scire
21cb300537
constexpr: resign ourselves to gcc dropping void -> T support
2021-10-26 01:11:10 -07:00
Michael Scire
e9c82af25f
kern: remove need for explicit reserved member in KAutoObject
2021-10-26 01:11:10 -07:00
Michael Scire
f8d59254cf
kern: devirtualize KAutoObject::DynamicCast<>()
...
This is an optimization that saves the most common type of virtual call in the kernel (DynamicCast)
by storing class token as a member, rather than getting it via virtual call every time.
This does not currently cost any memory space on 64-bit targets, due to pre-existing padding space.
This optimization can be turned off via a compile-time flag for accuracy.
2021-10-26 01:11:09 -07:00
Michael Scire
05c7ba6439
kern/util: update structure layouts to match Nintendo (saves 0x10 per KThread/KSession)
2021-10-26 01:11:09 -07:00
Michael Scire
d5ea59d8f8
powctl: remove unused arm_neon header after last commit
2021-10-26 01:11:09 -07:00
Michael Scire
6da57eff75
powctl: don't require arm64 arch for floating -> fixed conversion
2021-10-26 01:11:09 -07:00
Michael Scire
cf765c0946
tipc: implement special-case templating used by 13.0.0 pgl
2021-10-15 23:54:40 -07:00
Michael Scire
0238bdf65b
tipc: enable named-thread dispatch
2021-10-15 23:54:40 -07:00
Michael Scire
dbd0b13002
boot: update for 13.0.0/aula parameter changes ( closes #1477 )
2021-10-15 23:54:40 -07:00
Michael Scire
17bf5ee002
powctl: integrate 13.0.0 changes (aula params not done yet)
2021-10-15 23:54:40 -07:00
Michael Scire
68e9f7c853
strat: fix some mitm server management logic
2021-10-15 23:54:39 -07:00
Michael Scire
56222786c6
tipc/sm: update more fully for 13.0.0 changes
2021-10-15 23:54:39 -07:00
Michael Scire
15f27d59df
tipc: add additional logic from 13.0.0
2021-10-15 23:54:39 -07:00
Michael Scire
15b3f9545f
sm/tipc: minor cleanup
2021-10-15 23:54:39 -07:00
Michael Scire
02c1d19605
strat: don't force fs globals to link into every process
2021-10-15 23:54:38 -07:00
Michael Scire
a9322a7245
sf: prevent emitting mitm/defer code unless server in process supports it
2021-10-15 23:54:38 -07:00
Michael Scire
96190af3dc
util: fix consteval CountTrailingZeroes impl
2021-10-15 23:54:38 -07:00
Michael Scire
3744ee6fff
ams: bump api verrsion pre-emptively to 1.2.0
2021-10-15 23:54:37 -07:00
Michael Scire
3bef5b7d5a
ams: allow bootloader to merely approximate correct target firmware
2021-10-15 23:54:37 -07:00
Michael Scire
774622d93f
loader: refactor to remove fake namespaces
2021-10-15 23:54:36 -07:00
Michael Scire
3218308524
loader: refactor ro manager/improve accuracy
2021-10-15 23:54:36 -07:00
Michael Scire
0abb1e474e
spl: refactor for accuracy/move into libstrat
2021-10-15 23:54:36 -07:00
Michael Scire
11e9dcfe11
os: add FlushDataCache
2021-10-15 23:54:36 -07:00
Michael Scire
3e33fb6361
strat: use m_ for member variables
2021-10-15 23:54:35 -07:00
Michael Scire
5872a51c18
svc: use m_ for member variables
2021-10-15 23:54:35 -07:00
Michael Scire
bb1a22a631
sdmmc: use m_ for member variables
2021-10-15 23:54:35 -07:00
Michael Scire
65e89cf1b8
kern: fix some lingering non-m_ member variables
2021-10-15 23:54:35 -07:00
Michael Scire
116e41f790
exo/vapours: refactor member variables to m_ over this->
2021-10-15 23:54:34 -07:00
Michael Scire
af55ad6e67
libstrat: remove lingering debugging edits
2021-10-15 23:54:34 -07:00
Michael Scire
3b5f56ab9f
ams: replace most remaining operator & with std::addressof
2021-10-15 23:54:34 -07:00
Michael Scire
02e98d84d7
settings: fix correctness issue in LazyFileAccessor
2021-10-15 23:54:34 -07:00
Michael Scire
5c32ec11ea
strat: refactor address taking of form &var[...]
2021-10-15 23:54:34 -07:00