Commit graph

3706 commits

Author SHA1 Message Date
hexkyz
054c65dffb
Revert unnecessary change (thanks @rajkosto) 2018-07-26 19:26:43 +01:00
hexkyz
7836609839 Fix multiple issues reported by Coverity Scan 2018-07-26 18:45:18 +01:00
hexkyz
fd88bd1d2c
fusee: Disable the SDCLK when switching to low voltage. 2018-07-24 19:06:41 +01:00
hexkyz
a2104b85ce
fusee: Disable the SDCLK when switching to low voltage. 2018-07-24 19:05:27 +01:00
Michael Scire
dd4993dfda Loader: Use HW-acceleration for SHA256 2018-07-24 01:26:37 -07:00
hexkyz
e58927a8ab fusee: Fix SDMMC high speed support and other bugs. 2018-07-23 20:14:53 +01:00
Michael Scire
eaa282b915 Fix additional UAF in DirEntry building 2018-07-19 21:21:50 -06:00
Michael Scire
a46e796f4d fs.mitm: Fix UAF in every DirEntry processed.
How on earth did this code ever work?
2018-07-19 21:17:57 -06:00
hexkyz
3db9ce32fa Fusee: Deployed new SDMMC driver in fusee-secondary. All stages boot now.
Fusee: Fixed wrong argument in se.c function.
Fusee: Improved timers.
2018-07-19 21:07:53 +01:00
Léo Lam
49ba91a8f3 fs_istorage: Default IStorage destructor in cpp
Prevents a -Wweak-vtables warning.
2018-07-10 09:38:18 -07:00
Léo Lam
e088a2f414 stratosphere: In-class initialize members
Same thing, less code, less boilerplate.
2018-07-10 09:38:18 -07:00
Léo Lam
5b3e8e1c5d stratosphere: Use RAII for locks
This renames the Mutex class member functions so that the mutex types
satisfy Lockable.

This makes them usable with standard std::scoped_lock
and std::unique_lock, which lets us use RAII and avoids the need
for a custom RAII wrapper :)
2018-07-10 09:38:18 -07:00
Léo Lam
18153713d9 pm: Fix missing include 2018-07-10 09:38:18 -07:00
Léo Lam
a28b40866a stratosphere: Remove an unneeded constructor
domain_objects is already an array of empty std::shared_ptrs (since
std::shared_ptr has a sane default constructor).
2018-07-10 09:38:18 -07:00
hexkyz
22ae5b861c
fusee: Correct wrong comment (thanks @desowin) 2018-07-05 16:05:38 +01:00
hexkyz
3394f0cf0d
Merge pull request #161 from TheDgtl/fix_4xx_kernel
Fix issue with fusee-secondary 4.x kernel patches
2018-07-04 22:06:11 +01:00
hexkyz
c5e9aec013 fusee: Temporarily disable anything that prevents the fusee-primary to fusee-secondary transition. 2018-07-04 22:04:41 +01:00
hexkyz
ddbbb0b758 fusee: SDMMC driver re-design:
- Based on hekate's, linux's and u-boot's source code;
- Full support for SD and MMC;
- Fixes multiple issues;
- Deployed first in fusee-primary.

fusee: Code cleanup and style fixes.
2018-07-04 21:55:27 +01:00
Drakia
6ab81e1780 Fix issue with fusee-secondary 4.x kernel patches 2018-07-01 17:50:02 -07:00
Michael Scire
83c9747e5f fs.mitm: Save memory+time in sibling reconstruction via reverse iteration 2018-06-29 00:34:18 -06:00
Michael Scire
4c920dfe92 fs.mitm: Optimize out remaining O(n^2) op. BotW is very fast. 2018-06-28 23:24:08 -06:00
Michael Scire
90226ec438 fs.mitm: Fix typo. map impl takes 2-3 seconds to boot botw. 2018-06-28 23:18:35 -06:00
Michael Scire
c536665fe9 fs.mitm: Use std::map for RomFS building 2018-06-28 22:40:18 -06:00
Michael Scire
fb0c1b1ac7 fs.mitm: Fix debug-commented-out command 2018-06-28 20:42:27 -06:00
Michael Scire
caac5f9078 fs.mitm: Simplify source merging condition thanks to padding guarantees 2018-06-28 20:41:36 -06:00
Michael Scire
a95836552e fs.mitm: Use less path memory, fix source concat. (Fixes BotW, probably others) 2018-06-28 20:39:23 -06:00
Michael Scire
8da27723fc fs.mitm: Fix c++ modernization breaking changes 2018-06-27 23:02:06 -06:00
hexkyz
ed718e007f
Merge pull request #156 from Benoit7413/patch-1
Replace NAND by eMMC
2018-06-26 16:33:18 +01:00
Michael Scire
6fd82b7947 creport: Add dying message to output report, if relevant. 2018-06-26 00:51:53 -06:00
Benoit7413
0f6d4baa8e
Replace NAND by eMMC
Using NAND doens't really make sense
2018-06-26 08:49:50 +02:00
Michael Scire
4eadeb021b creport: Complete crash report saving. 2018-06-26 00:44:58 -06:00
Michael Scire
d5b303f852 creport: Clean up bugs, now saves (empty) reports to the SD successfully 2018-06-25 22:27:33 -06:00
Michael Scire
12236eae9e creport: Fix bad constructor for ThreadInfo 2018-06-25 20:40:33 -06:00
Michael Scire
71e87e9e35 creport: fix a bunch of trivial errors 2018-06-25 10:25:14 -06:00
Michael Scire
fc36429b99 creport: fix typo in json 2018-06-25 10:23:37 -06:00
Michael Scire
b8e0c2855f creport: Further Skeleton Report saving. 2018-06-25 10:22:37 -06:00
Michael Scire
92bc396972 creport: Implement reading name/build id from .rodata 2018-06-25 09:50:36 -06:00
Michael Scire
f189610af8 creport: Skeleton reading of Code Regions. 2018-06-25 04:38:54 -06:00
Michael Scire
fd6fa89122 creport: fix thread_list access style 2018-06-25 04:08:42 -06:00
Michael Scire
d65255acb8 creport: Implement reading info about all threads. 2018-06-25 04:07:44 -06:00
Michael Scire
5268a9f9f3 creport: Implement reading a dying message 2018-06-25 03:40:32 -06:00
Michael Scire
e6b7793916 creport: Parse info for crashed thread 2018-06-25 03:04:17 -06:00
Michael Scire
7cd44e8980 creport: Read exception info properly (except for crashed thread info) 2018-06-25 02:18:26 -06:00
Michael Scire
4e7fcc1a50 creport: Solidify main() logic. 2018-06-25 01:58:44 -06:00
Michael Scire
851d21a276 creport: Implement process open, stub exception parsing. 2018-06-25 01:45:25 -06:00
Michael Scire
6ffc9bd8e0 creport: Further skeleton the CrashReport object. 2018-06-25 00:42:26 -06:00
Michael Scire
af4485d533 creport: Add skeleton. Doesn't actually generate reports yet. 2018-06-24 22:46:20 -06:00
Michael Scire
bcf81fe957 Loader: Fix argument passing. 2018-06-24 21:39:05 -06:00
Michael Scire
9687218fbc Fusee: lfs kernel patches for 3.0.0/3.0.2 2018-06-24 16:24:22 -06:00
Michael Scire
1252c4d5e1 Fusee: Complete hashes (Thanks @Thog), lfs patches for 2.0.0 2018-06-24 15:51:29 -06:00