Commit graph

168 commits

Author SHA1 Message Date
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
284677c486 libstratosphere: Cleanup resources when doing OutSession for domains. 2018-06-24 12:39:09 -06:00
Tony Wasserka
ad636f7216 Modernize C++ usage (#144)
* Stratosphere: Use modern C++ idioms in some places

* algorithms like std::for_each are used instead of raw loops

* Stratosphere: Replace more raw loops with algorithms

* Stratosphere: Add a utility predicate function to test for equality with a reference element

This can be used to rewrite some common raw loops using algorithms instead

* fs.mitm: Use variant

* fs.mitm: Use enum class

* fs.mitm: Turn RomFSSourceInfo::Cleanup into a destructor

This obsoletes the need for a custom deleter in other places

* fs.mitm: Use enum class some more

* fs.mitm: Use unique_ptr

* fs.mitm: Simplify initialization

* Stratosphere: Simplify initialization

* fs.mitm: Use unique_ptr (fix memory leak along the way)

The previous code was using "delete" rather than "delete[]"

* fs.mitm: Use vector::emplace_back rather than push_back

emplace_back constructs elements in-place, hence avoiding a redundant element copy.

* Stratosphere: Replace more raw loops with algorithms

* Stratosphere: Use unique_ptr

* fs.mitm: Replace more raw loops with algorithms

* Stratosphere: Prefer move-construction over copy-construction when moving sink parameters around
2018-06-19 11:07:31 -07:00
Michael Scire
f41b780c0a PM: Fix remaining issues, now works properly again. 2018-06-15 00:47:07 -06:00
Michael Scire
4d36697080 Make PM Compile. Note: Currently broken. 2018-06-14 23:32:01 -06:00
Michael Scire
c2d9ac8f5c fs.mitm: WIP LayeredFS impl (NOTE: UNUSABLE ATM)
Also greatly refactors libstratosphere, and does a lot of other things.
There is a lot of code in this one.
2018-06-14 17:51:18 -06:00
Michael Scire
237ff0d1e7 libstratosphere/fs.mitm: Push WIP support for Domains. Not yet fully working. 2018-06-12 16:01:04 -06:00
Michael Scire
5c80016c81 fs.mitm: Add HANS-style redirection for System Data Archives. 2018-06-10 11:11:23 -06:00
Michael Scire
931e38742b fs.mitm: Fix sm^H^Hfshax 2018-06-10 03:12:34 -06:00
Michael Scire
3cbdf0b2b9 fs.mitm: Get Title ID on fsp-srv init, Add worker to handle subinterfaces. 2018-06-10 03:07:15 -06:00
misson20000
ec78fa5977 sm: add compile-time option to put a lower bound on session limits, which lets us do things like accessing fsp-ldr without killing ldr. (#136)
This time with style fixes.
2018-06-10 00:29:42 -07:00
Michael Scire
548903e3fb fs.mitm: Remove debugging test, fix postprocessing. 2018-06-10 01:19:29 -06:00
Michael Scire
ff9412feef fs.mitm: Add hook for postprocessing mitm messages. 2018-06-10 01:17:00 -06:00
Michael Scire
40a6b7bb54 fs.mitm: Fix pointer buffer size passed to mitm'd commands 2018-06-09 19:36:01 -06:00
Michael Scire
6a58307d83 fs.mitm: Remove unnecessary permissions from json. 2018-06-09 19:34:25 -06:00
Michael Scire
c1c211f542 fs.mitm: Implement basic passthrough framework for input commands. 2018-06-09 19:33:22 -06:00
misson20000
28d630a23e pm: add Atmosphere GetProcessHandle command to pm:dmnt (#133) 2018-06-07 23:32:45 -07:00
Tony Wasserka
0359d6535b Build fix 2018-06-03 18:31:03 +02:00
Tony Wasserka
edc099f026 Use "final" and "override" where appropriate (#117) 2018-06-02 22:46:27 -07:00
Michael Scire
bb636dc05a SM: Make Mitm compile-time toggleable, to forestall whining. 2018-06-02 23:42:01 -06:00
Michael Scire
80f40caf67 SM: Add IPC commands for first-class MITM installation. 2018-06-02 23:38:01 -06:00
hexkyz
7a27322044
Boot: Fully implemented GPIO and PINMUX handling 2018-06-02 22:32:51 +01:00
hexkyz
b777844d2d
Boot: Implement PMC wake pin events 2018-05-21 21:32:57 +01:00
TuxSH
b4eeddd7e1 Revamp all the Makefiles (thanks @fincs @WinterMute)
... dependencies are now properly handled (e.g. header changes, etc.)
2018-05-19 01:07:27 +02:00
hexkyz
bf3eea7031
Boot: Implement pinmux drive pad configuration 2018-05-15 21:25:40 +01:00
TuxSH
6efe91b083 boot: build as KIP (thanks @fincs !) 2018-05-15 19:38:04 +02:00
TuxSH
40521a8f63 Fix the syntax errors in the boot JSON files 2018-05-15 19:23:22 +02:00
TuxSH
4e12d55993 loader, pm, sm: build kip as only taget (thanks @fincs !) 2018-05-15 02:28:41 +02:00
TuxSH
d9c2a54464 Make a top-level make build everything in order 2018-05-15 01:30:56 +02:00
TuxSH
cae107557d Fix the remaining warnings in stratosphère 2018-05-15 00:54:12 +02:00
TuxSH
52114760b3 Ignore unused-but-set-variable in ipc_templating.h 2018-05-15 00:44:10 +02:00
TuxSH
ce891c990f Fix latest commit not building 2018-05-15 00:37:07 +02:00
hexkyz
a28924fa10
Boot: Implement pinmux setup 2018-05-14 22:02:40 +01:00
hexkyz
3273cc5357
Merge pull request #84 from leoetlino/printf-format
ldr: Fix printf format string for size_t
2018-05-09 22:49:01 +01:00
Luke Street
96391ffca6 boot: Use fsdevMountSdmc & fsdevUnmountAll 2018-05-09 12:07:53 -04:00
Michael Scire
ba7d0c2cb6 Exosphere: Add API for retrieving versioning info. 2018-05-09 06:29:56 -06:00
Michael Scire
173e6c8c0f PM: Fix missing flags set/missing wait. Now works on 5.x. 2018-05-08 18:46:49 -06:00
hexkyz
a39ad22841
Boot: Fleshing out more low level stuff
Add register read/write for 2.0.0+ (with svcReadWriteRegister)
Add hardware type recognition
Implement PMC clock out configuration
Implement PINMUX park updating
2018-05-08 22:48:43 +01:00
Michael Scire
c800421a36 Loader: Fix char * const correctness. 2018-05-08 04:43:07 -06:00
Michael Scire
5c6f0fc14c SM: Match official SAC validation behavior. 2018-05-08 03:02:57 -06:00
Michael Scire
aa158dbb5a Loader: Fix game update content loading, fix SD card mounting on newer firmwares. Closes #61. 2018-05-08 02:59:18 -06:00
Michael Scire
44127faa17 SM: Fix svcGetSystemInfo bug, now works on 5.0.2. 2018-05-07 22:48:08 -06:00
Michael Scire
b346c8f375 Fix minor bugs in loader/sm 2018-05-07 07:31:36 -06:00
Michael Scire
9e558dafee libstratosphere: Make boolean autoparsing match official semantics. 2018-05-07 07:22:41 -06:00
Michael Scire
ae78ee22da ProcessManager: Fully implement pm:dmnt. Remove debug logging. 2018-05-07 04:45:44 -06:00
Michael Scire
6dc8ab6f17 ProcessManager: Refactor resource limits, complete pm:shell. 2018-05-07 03:50:45 -06:00
Michael Scire
700f92162d ProcessManager: Fix Synchronization. Now works on 1.0.0 hardware. 2018-05-06 23:00:05 -06:00
Léo Lam
bd42514af0 ldr: Fix printf format string for size_t
%z should be used for size_t, otherwise the wrong value may be printed.

Fixes two -Wformat warnings.
2018-05-06 21:07:34 +02:00