Michael Scire
96d3187f3e
kern: remove need for explicit reserved member in KAutoObject
2021-10-16 17:17:26 -07:00
Michael Scire
bfffe6b119
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-16 16:24:06 -07:00
Michael Scire
26c02e2019
kern/util: update structure layouts to match Nintendo (saves 0x10 per KThread/KSession)
2021-10-16 16:13:10 -07:00
Michael Scire
77fe5cf6f5
ams: the copyright^H^H^H^H^H^H^Hmplex plane is the algebraic closure of the reals
2021-10-04 12:59:10 -07:00
Michael Scire
572cbd8619
kern: KAutoObject doesn't need (virtual) destructor
2021-09-19 10:34:31 -07:00
Michael Scire
fbc526d163
kern: tweak KAutoObject::Open/Close codegen
2021-04-19 18:03:27 -07:00
Michael Scire
4407237f5b
kern: KAutoObject destruction is now scheduled for next dpc-time
2021-04-11 03:42:16 -07:00
Michael Scire
4aa18b06e8
kern: greatly improve codegen for atomics, scheduler
2021-01-08 02:13:43 -08:00
Michael Scire
968f50bc07
kern: refactor to use m_ for member variables
2020-12-18 13:31:01 -08:00
Michael Scire
972283032a
kern: tweak KScopedAutoObject
2020-12-02 06:43:37 -08:00
Michael Scire
152def19c0
kern: build as -Os instead of -O2
2020-12-02 06:43:37 -08:00
Michael Scire
f866f37cdc
kern: panic on failure-to-open auto object in debug config
2020-07-31 14:50:52 -07:00
Michael Scire
632a75eee7
kern: KConditionVariable::SignalImpl
2020-07-31 14:50:52 -07:00
Michael Scire
fae2daf77c
kern: fix bug in up/downcasting of scoped auto objects
2020-07-31 14:50:52 -07:00
Michael Scire
7400a8ff68
kern: SvcConnectToNamedPort
2020-07-10 11:55:33 -07:00
SciresM
3a1ccdd919
Switch atmosphere's build target to C++20. ( #952 )
...
* ams: update to build with gcc10/c++20
* remove mno-outline-atomics
* ams: take care of most TODO C++20s
* fusee/sept: update for gcc10
* whoosh, your code now uses pre-compiled headers
* make: dependency fixes
2020-05-11 15:02:10 -07:00
Michael Scire
ca26d8ce27
kern: Implement SvcManageNamedPort
2020-03-18 00:09:51 -07:00
Michael Scire
efae01c165
kern: implement KUserPointer (and test with QueryMemory) in advance of svc dev
2020-02-20 09:05:24 -08:00
Michael Scire
c568788609
kern: implement KProcess::Run
2020-02-19 19:38:20 -08:00
Michael Scire
e9e949ec36
kern: obj stubs to get past slab init
2020-02-07 11:51:58 -08:00
Michael Scire
484f132651
kern: implement KHandleTable, other cleanup
2020-01-30 15:29:51 -08:00
Michael Scire
7d6b16d7fb
kern: Skeleton KSynchronizationObject
2020-01-29 23:46:55 -08:00
Michael Scire
2faf3d33b5
kern: Implement KAutoObject, KSlabHeap, KLightLock
2020-01-29 22:06:25 -08:00