Commit Graph

1675 Commits

Author SHA1 Message Date
Michael Scire
8b80e0ec23 exo2: implement SmcComputeAes, SmcGetResult, SmcGetResultData 2020-06-14 22:53:59 -07:00
Michael Scire
10f12f49e7 exo2: implement SmcGenerateAesKek, SmcLoadAesKey 2020-06-14 22:53:58 -07:00
Michael Scire
94a8be89ac exo2: implement SmcGetConfig 2020-06-14 22:53:58 -07:00
Michael Scire
9819c15c5b exo2: Implement SmcReadWriteRegister 2020-06-14 22:53:57 -07:00
Michael Scire
13ee5bab6a exo2: minor fixes, now completes main and receives SMCs on hw 2020-06-14 22:53:57 -07:00
Michael Scire
9251c28a34 exo2: minor stack/mmu fixes, now gets to main on hw 2020-06-14 22:53:57 -07:00
Michael Scire
35503a36d7 exo2: implement SmcPowerCpuOn 2020-06-14 22:53:56 -07:00
Michael Scire
eb348f7da2 exo2: by default, map end of iram for debug 2020-06-14 22:53:56 -07:00
Michael Scire
43a1908de7 exo2: reorganize to save >0x300 bytes and 0x100 of stack in main 2020-06-14 22:53:55 -07:00
Michael Scire
ffb3493ab5 exo2: implement remainder of warmboot tz code 2020-06-14 22:53:55 -07:00
Michael Scire
6b7954ad58 exo2: Implement the rest of main/return-to-el1 2020-06-14 22:53:54 -07:00
Michael Scire
f47147653e exo2: implement rest of main other than SetupSocProtections 2020-06-14 22:53:54 -07:00
Michael Scire
91bcead046 exo2: implement through package2 decryption 2020-06-14 22:53:54 -07:00
Michael Scire
cf923dc0fe exo2: implement main through sync-for-pk21-load 2020-06-14 22:53:54 -07:00
Michael Scire
eb2595ed6c exo2: implement through boot config load/validate 2020-06-14 22:53:53 -07:00
Michael Scire
314b423ddc exo2: implement through end of random cache init 2020-06-14 22:53:53 -07:00
Michael Scire
bc653fa855 exo2: Initial work on the exosphere rewrite.
exo2: Implement uncompressor stub and boot code up to Main().

exo2: implement some more init (uart/gic)

exo2: implement more of init

exo2: improve reg api, add keyslot flag setters

exo2: implement se aes decryption/enc

exo2: fix bugs in loader stub/mmu mappings

exo2: start skeletoning bootconfig/global context types

arch: fix makefile flags

exo2: implement through master key derivation

exo2: implement device master keygen

exo2: more init through start of SetupSocSecurity

exo2: implement pmc secure scratch management

se: implement sticky bit validation

libexosphere: fix building for arm32

libexo: fix makefile flags

libexo: support building for arm64/arm

sc7fw: skeleton binary

sc7fw: skeleton a little more

sc7fw: implement all non-dram functionality

exo2: fix DivideUp error

sc7fw: implement more dram code, fix reg library errors

sc7fw: complete sc7fw impl.

exo2: skeleton the rest of SetupSocSecurity

exo2: implement fiq interrupt handler

exo2: implement all exception handlers

exo2: skeleton the entire smc api, implement the svc invoker

exo2: implement rest of SetupSocSecurity

exo2: correct slave security errors

exo2: fix register definition

exo2: minor fixes
2020-06-14 22:53:53 -07:00
Michael Scire
bef5c13bb2 ams: update for 10.0.3 2020-06-14 22:53:52 -07:00
Michael Scire
2944347060 fs: miscellaneous bucket tree fixes 2020-06-14 22:53:52 -07:00
Adubbz
797dfa782e ncm: implement firmware downgrading (#958)
* ncm: implement firmware downgrading

* ncm: make storage list const
2020-05-18 08:22:12 -07:00
Michael Scire
f3ae89aa2b os: use ported libnx mutex impl 2020-05-18 08:22:12 -07:00
Michael Scire
bbbe67937a nca-pr: update for c++20 2020-05-14 02:22:37 -07:00
SciresM
b38939adb5 Implement support for parsing/interacting with NCAs. (#942)
* fs: implement support for interacting with ncas.

* spl: extend to use virtual keyslots
2020-05-12 15:44:19 -07:00
SciresM
7d041e853d 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-12 15:44:19 -07:00
Michael Scire
0cc84d4c47 ams: use psc acknowledge_ex on 5.1.0+ (fixes wake-from-sleep on 5.1.0) 2020-05-12 15:44:18 -07:00
Michael Scire
1f35c699a7 ams: revamp target firmware 2020-05-12 15:44:18 -07:00
Michael Scire
b4442b1c20 ams:bpc: allow programatically setting reboot payload 2020-05-12 15:44:18 -07:00
Michael Scire
01cdea9498 kern: fix link error 2020-05-12 15:44:17 -07:00
Michael Scire
ea45d6e146 os: oh geez look at the time 2020-05-12 15:44:16 -07:00
Michael Scire
6913aa5295 result: add R_CATCH_MODULE 2020-04-27 10:34:07 -07:00
Michael Scire
80f8bc631e kern: fix KLinkedList dtor 2020-04-27 10:34:07 -07:00
Michael Scire
2914752dcc kern: implement SvcSetUnsafeLimit 2020-04-27 10:34:06 -07:00
Michael Scire
e668fbb68a kern: implement KUnsafeMemory 2020-04-27 10:34:06 -07:00
Michael Scire
bb40dae329 ams: bump version to 0.12.0 2020-04-24 17:29:14 -07:00
Michael Scire
b7491393b2 dmnt: move stuff around slightly, add client bindings 2020-04-24 17:29:14 -07:00
Michael Scire
19d2b5f629 note that we support 10.0.1 2020-04-24 17:29:13 -07:00
SciresM
d2de74155d PRODINFO: Revamp blanking/write disallow policy. (#913)
* exo/fusee: hookup new prodinfo settings

* fusee: new scheme doesn't need FLAGS_DEFAULT

* fusee: fix c/p errors

* ams.mitm: completely revamp prodinfo backup mechanism

* ams.mitm: Implement revamped blanking/write policy

* strat: make early boot more debuggable

* exo: condense flag logic
2020-04-24 17:29:12 -07:00
Michael Scire
fb3b3f4a72 creport: Try to take screenshot of application crashes on 9.x+ 2020-04-24 17:29:12 -07:00
Michael Scire
716797efc5 erpt: fix access to time service on versions where it is disallowed 2020-04-24 17:29:11 -07:00
Michael Scire
4496c6aa23 kern/kldr: fix bugs in physical randomization 2020-04-24 17:29:11 -07:00
Michael Scire
2e18a27f3a os: bug fixes after re-review of rwlock code 2020-04-24 17:29:11 -07:00
Michael Scire
b8be9d0031 os: implement ReadWriteLock 2020-04-24 17:29:11 -07:00
Michael Scire
0c0762fc8f refactor jpegdec implementation into libstrat (thanks again, Behemoth!) 2020-04-24 17:29:10 -07:00
HookedBehemoth
f63e67a1df jpegdec reimplementation (#912)
* add jpegdec reimplementation

* reduce work memory

* fix color space

* jpegdec: cleanup results to use atmosphere style

* fix outdated comments, correct do/while bug

Co-authored-by: Michael Scire <SciresM@gmail.com>
2020-04-24 17:29:10 -07:00
Michael Scire
71027e463a kern: implement 10.x perm change, fix many page table bugs 2020-04-24 17:29:10 -07:00
Michael Scire
ac1302256b kern: randomize dynamic slab heaps to reflect 10.x changes 2020-04-24 17:29:10 -07:00
Michael Scire
432e2aa60d kern: fix suboptimal mapping choices by kernel/kernelldr 2020-04-24 17:29:09 -07:00
Michael Scire
08b4ed8daf kern: Update init to reflect 10.0.0 changes 2020-04-24 17:29:09 -07:00
Michael Scire
4c1dc00766 kern: Update page bitmaps/alloc to reflect 10.0.0 changes 2020-04-24 17:29:09 -07:00
Michael Scire
18666a88c0 ams: centralize system thread definitions 2020-04-24 17:29:09 -07:00