Michael Scire
dbbf26f03c
ams: expose reboot payload for kernel panic
2020-10-26 16:03:06 -07:00
Michael Scire
e7e63e19b9
kern: fix KCodeMemory SVCs when Owner process != Generator process
2020-09-17 08:34:23 -07:00
Michael Scire
ba45f73e40
kern: generate fatal error on panic
2020-09-17 08:34:22 -07:00
Michael Scire
f7a3eead0c
kern: add build-define for logging to iram ringbuffer
2020-09-17 08:34:22 -07:00
Michael Scire
a1ef94c342
kern: lps driver fixes, sleep confirmed working on 1.0.0
2020-09-07 10:51:52 -07:00
Michael Scire
81a47c1cb8
kern: fix c/p error
2020-09-07 10:51:52 -07:00
Michael Scire
6cda01f88f
kern: add debug logging on smmu error interrupt
2020-09-07 10:51:52 -07:00
Michael Scire
51c951f4ac
kern: finish 1.x lps driver
2020-09-07 10:51:51 -07:00
Michael Scire
c93a3b2e8b
kern: add most of 1.x lps driver
2020-09-07 10:51:51 -07:00
Michael Scire
b4dbd97381
kern: skeleton legacy lps driver
2020-09-07 10:51:51 -07:00
Michael Scire
6182330d05
exo/kern: 1.0.0 requires access to bpmp smmu regs, userland (am) needs to map bpmp exception vectors
2020-09-07 10:51:50 -07:00
Michael Scire
22f2946671
kern: begin 1.0.0 backwards compat changes (kips run, full boot fails)
2020-09-07 10:51:50 -07:00
Michael Scire
1aedaa0f91
kern: support 2-pool layout on 2.x-4.x instead of modern 4-pool layout
2020-09-07 10:51:50 -07:00
Michael Scire
6cf1e0cece
kern: change terminology metadata -> management
2020-09-07 10:51:50 -07:00
Michael Scire
00a43ac776
kern: revamp KMemoryRegionType to better encode derivation hierarchies
2020-09-07 10:51:49 -07:00
Michael Scire
ae14cf51b5
kern: PMC must be user-mappable for 1.0.0 compat
2020-09-07 10:51:48 -07:00
Michael Scire
c89927177e
kern: expose mesosphere meta over GetInfo instead of GetSystemInfo
2020-09-07 10:51:48 -07:00
Michael Scire
8836a5385c
kern/pm: support for 5.x under mesosphere
2020-09-07 10:51:47 -07:00
Michael Scire
658b92e17a
kern: add version bounds checking
2020-09-07 10:51:45 -07:00
Michael Scire
5bc3307ffa
kern: improve resource region size definitions/calculations
2020-09-07 10:51:45 -07:00
Michael Scire
959122a849
kern: resolve NonSecure definition TODO
2020-09-07 10:51:44 -07:00
Michael Scire
1007d8756a
kern: correct thread termination atomicity
2020-09-07 10:51:44 -07:00
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