Commit Graph

263 Commits

Author SHA1 Message Date
Michael Scire
f577ffa682 kern: fix reference leak in KThread::GetThreadFromId callers 2020-09-07 10:51:44 -07:00
Michael Scire
aea200fece kern: non-loop cas-weak -> cas-strong 2020-09-07 10:51:44 -07:00
Michael Scire
e1e2be41d6 kern: fix bug in KScheduler::ClearPreviousThread 2020-09-07 10:51:43 -07:00
fincs
4916f3f7f8 kern: move SetupPoolPartitionMemoryRegions into board specific implementation 2020-09-07 10:51:42 -07:00
Michael Scire
e6bf8d2d97 kern: use std::atomic_ref instead of reinterpret_cast to std::atomic 2020-09-07 10:51:42 -07:00
Michael Scire
78161021f4 kern: use common GIC implementation for arm/arm64 2020-09-07 10:51:41 -07:00
Michael Scire
4a50b00cab kern: correct flushing of init arguments 2020-09-07 10:51:41 -07:00
Michael Scire
f02868d886 kern: simplify SetupForIpcClient cleanup 2020-09-07 10:51:41 -07:00
Michael Scire
d7e420c895 kern: SvcLegacyGetFutureThreadInfo 2020-09-07 10:51:40 -07:00
Michael Scire
4cafc6acb9 kern: rename CacheHelper operation for accuracy 2020-09-07 10:51:40 -07:00
Michael Scire
23864afe32 kern: KPageTableBase::WriteDebugMemory stores/invalidates cache 2020-09-07 10:51:40 -07:00
Michael Scire
888f5cdd20 kern: fix multicore instruction cache invalidation 2020-09-07 10:51:40 -07:00
Michael Scire
d2dd922f47 kern: add tracing for irq/scheduling 2020-09-07 10:51:39 -07:00
Michael Scire
b876337ffd kern: cleanup some KMemoryManager functions 2020-09-07 10:51:39 -07:00
Michael Scire
f0b455de83 kern: refactor KMemoryLayout 2020-09-07 10:51:39 -07:00
Michael Scire
0a4a0d3f03 kern: N reduced the slabheap gap size in 10.0.0 2020-09-07 10:51:38 -07:00
Michael Scire
6f177e3e84 kern: fix missing scheduler updates in KLightLock/Exception, fix RequestScheduleOnInterrupt 2020-09-07 10:51:38 -07:00
Michael Scire
4a91046154 kern: implement svc trace 2020-09-07 10:51:37 -07:00
Michael Scire
db93ab974d kern: SvcChangeKernelTraceState 2020-09-07 10:51:37 -07:00
Michael Scire
b31aa538da kern: remove stray log in SetHeapSize 2020-09-07 10:51:37 -07:00
Michael Scire
dc59a2d2e5 kern: build with -Wextra 2020-09-07 10:51:36 -07:00
Michael Scire
9f7bc49438 ams: avoid UB infinite loops 2020-08-14 17:36:37 -07:00
Michael Scire
5d51dfdd6c kernel_ldr: use unoptimized memcpy before mmu bringup (closes #1102)
Before the MMU is up, all reads/writes must be aligned; the optimized
memcpy implementation does not guarantee all reads/writes it performs
are aligned.

This commit splits the libc impl to be separate for kernel/kernel_ldr,
and so now only kernel will use the optimized impl. This is safe,
as the MMU is brought up before kernel begins executing.
2020-08-02 15:02:55 -07:00
Michael Scire
b5c915a6f2 kern: complete final SVC stubs (KernelDebug/Trace debug-impl still TODO) 2020-08-01 15:31:46 -07:00
Michael Scire
227b9603cd kern: SvcReturnFromException 2020-08-01 15:31:46 -07:00
Michael Scire
2243c43449 kern: fix dynamic calculation of slab heap size 2020-08-01 15:31:45 -07:00
Michael Scire
f80eb2c26f kern SvcGetDebugThreadContext, SvcSetDebugThreadContext 2020-08-01 15:31:45 -07:00
Michael Scire
ff9d3ee1d6 kern: SvcGetDebugThreadParam 2020-08-01 15:31:45 -07:00
Michael Scire
bb044b1934 kern: clean up majority of TODOs 2020-08-01 15:31:44 -07:00
Michael Scire
d50efee2c7 kern: resolve final non-user-exception MESOSPHERE_UNIMPLEMENTED 2020-08-01 15:31:44 -07:00
Michael Scire
1c733577b4 kern: SvcGetDebugEventInfo64From32 2020-08-01 15:31:44 -07:00
Michael Scire
c7f108082b kern: resolve MESOSPHERE_UNIMPLEMENTEDs other than UserException 2020-08-01 15:31:44 -07:00
Michael Scire
3d5f2b7258 kern: Add real SvcBreak implementation 2020-08-01 15:31:43 -07:00
Michael Scire
b576737418 kern: SvcBreakDebugProcess, SvcTerminateDebugProcess 2020-08-01 15:31:43 -07:00
Michael Scire
179427687b kern: SvcSetHardwareBreakPoint 2020-08-01 15:31:43 -07:00
Michael Scire
3b9403f3fc kern: Svc(Legacy)ContinueDebugEvent 2020-08-01 15:31:42 -07:00
Michael Scire
349346ef34 kern: Add 4.x InitialProcessIdRange to SvcGetInfo 2020-08-01 15:31:42 -07:00
Michael Scire
a5d7e8328b kern: SvcQueryPhysicalAddress 2020-08-01 15:31:42 -07:00
Michael Scire
35af9a4996 kern: style parity for return in GetThreadList 2020-08-01 15:31:42 -07:00
Michael Scire
83020ce2c4 kern: SvcGetThreadList 2020-08-01 15:31:41 -07:00
Michael Scire
a0de667005 kern: SvcGetLastThreadInfo, SvcGetDebugFutureThreadInfo 2020-08-01 15:31:41 -07:00
Michael Scire
641e92e6a0 kern: SvcFlushDataCache, SvcFlushEntireDataCache 2020-08-01 15:31:41 -07:00
Michael Scire
ef6ede3aeb kern: SvcReadDebugProcessMemory, SvcWriteDebugProcessMemory 2020-08-01 15:31:40 -07:00
Michael Scire
8019804c7f kern: automatic PC alignment on ERET is implementation defined 2020-08-01 15:31:39 -07:00
Michael Scire
911a81430a kern: switch memset to optimized impl 2020-08-01 15:31:39 -07:00
Michael Scire
4a38e5d4b6 kern: use optimized memcmp/memcpy implementations 2020-08-01 15:31:39 -07:00
Michael Scire
c39da750f2 SvcQueryDebugProcessMemory 2020-08-01 15:31:38 -07:00
Michael Scire
85932bb91e kern: fix ARM vs THUMB mode selection on 32-bit entry 2020-08-01 15:31:38 -07:00
Michael Scire
fe1ab3785f kern: fix whoops in light ipc 2020-08-01 15:31:38 -07:00
Michael Scire
e8021705d8 kern: SendSyncRequestLight, ReplyAndReceiveLight 2020-08-01 15:31:37 -07:00