Commit Graph

339 Commits

Author SHA1 Message Date
Michael Scire
5f885a3b22 kern: implement new software-reserved page table bits 2020-12-02 06:53:08 -08:00
Michael Scire
394112f9ac kern: update KPageTableBase for new disable-merge attrs 2020-12-02 06:53:08 -08:00
SciresM
791b402320 sdmmc: implement driver suitable for fs + bootloader
* sdmmc: begin skeletoning sdmmc driver

* sdmmc: add most of SdHostStandardController

* sdmmc: implement most of SdmmcController

* sdmmc: Sdmmc2Controller

* sdmmc: skeleton implementation of Sdmmc1Controller

* sdmmc: complete abstract logic for Sdmmc1 power controller

* sdmmc: implement gpio handling for sdmmc1-register-control

* sdmmc: implement pinmux handling for sdmmc1-register-control

* sdmmc: fix building for arm32 and in stratosphere context

* sdmmc: implement voltage enable/set for sdmmc1-register-control

* util: move T(V)SNPrintf from kernel to util

* sdmmc: implement BaseDeviceAccessor

* sdmmc: implement MmcDeviceAccessor

* sdmmc: implement clock reset controller for register api

* sdmmc: fix bug in WaitWhileCommandInhibit, add mmc accessors

* exo: add sdmmc test program

* sdmmc: fix speed mode extension, add CheckMmcConnection for debug

* sdmmc: add DeviceDetector, gpio: implement client api

* gpio: modernize client api instead of doing it the lazy way

* sdmmc: SdCardDeviceAccessor impl

* sdmmc: update test program to read first two sectors of sd card

* sdmmc: fix vref sel

* sdmmc: finish outward-facing api (untested)

* ams: changes for libvapours including tegra register defs

* sdmmc: remove hwinit
2020-12-02 06:52:42 -08:00
SciresM
9ee32fee0f Meso build targets (#1196)
* meso: commit wip (thanks fincs) rewrite to support build targets

* meso: commit mostly-working build system

* meso: correct .o dependencies in kernel/kldr

* libstratosphere: fix building after PCH related build changes

Co-authored-by: fincs <fincs@devkitpro.org>
2020-12-02 06:52:42 -08:00
Michael Scire
10e9e0e8f9 docs/fatal error: update for 0.15.0 2020-10-26 16:03:09 -07:00
Michael Scire
0f3085b8f6 kern: perform rescheduling on dispatch re-enable (closes #1169) 2020-10-26 16:03:08 -07:00
Michael Scire
b953b82c3b kern: minor behavioral fixes to condvar/address arbiter 2020-10-26 16:03:08 -07:00
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
0b7648e7fc kern: default to release config 2020-09-17 08:34:22 -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
0c246b88bd kern: pool management should be within carveout 2020-09-07 10:51:49 -07:00
Michael Scire
d61f1ddef7 kern: fix phys/virt pool management mixup 2020-09-07 10:51:49 -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
ec6535bd4b kern: fix warn-errors 2020-09-07 10:51:47 -07:00
Michael Scire
8b88149742 kern: fix KTypedAddress, strengthen assertions 2020-09-07 10:51:46 -07:00
Michael Scire
658b92e17a kern: add version bounds checking 2020-09-07 10:51:45 -07:00
Michael Scire
576892ff32 kern: avoid hardcoding maximum board memory size 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
e1876a293f kern: add stubbed KDevicePageTable implementation for systems without iommu 2020-09-07 10:51:42 -07:00
fincs
4916f3f7f8 kern: move SetupPoolPartitionMemoryRegions into board specific implementation 2020-09-07 10:51:42 -07:00
fincs
ec558b3828 kern: make GetTargetFirmware a compile-time constant when not building for Switch 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