Commit Graph

19 Commits

Author SHA1 Message Date
Michael Scire
fb12edcbba use svcCallSecureMonitor instead of talking to spl. 2019-01-31 03:23:28 -08:00
Michael Scire
2f1fa654f2 Revise firmware version detection to use Exosphere's targetfirmware field 2019-01-31 03:07:24 -08:00
Michael Scire
236190f8a3 mitm-server: simplify logic, eliminate deadlock possibility 2019-01-26 06:22:18 -08:00
Michael Scire
dd31b3d2e2 smm_ams: fix typo 2018-11-30 00:52:03 -08:00
Michael Scire
8fbefee37e smm_ams: Add HasMitm extension 2018-11-30 00:50:45 -08:00
Michael Scire
8fcac73ab2 Greatly improve mitm session acquire semantics. 2018-11-15 14:18:52 -08:00
Michael Scire
39ce397017 libstratosphere: Implement message queues 2018-11-07 23:25:00 -08:00
Michael Scire
772f20b703 libstratosphere: refactor everything 2018-10-31 05:04:00 +09:00
hexkyz
5cecc78d51 Add and fix copyright notices for better GPL compliance (thanks @naehrwert and @CTCaer). 2018-09-07 16:00:13 +01:00
Léo Lam
f4212ff213 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
Tony Wasserka
1b356cd4f2 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
51edf0fde9 PM: Fix remaining issues, now works properly again. 2018-06-15 00:47:07 -06:00
Michael Scire
26e676424d 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
cd5da88405 libstratosphere/fs.mitm: Push WIP support for Domains. Not yet fully working. 2018-06-12 16:01:04 -06:00
Michael Scire
b657d4adb5 ProcessManager: Implement core process management logic. 2018-05-03 23:58:37 -06:00
Michael Scire
0351b32b27 Stratosphere: Fix remaining bugs in sm, which now works as a KIP1 on hardware 2018-04-30 22:27:26 -06:00
Michael Scire
309a4607dd Stratosphere: Fix IServer constructors. SM is fully functional on hardware now. 2018-04-22 05:13:33 -06:00
Michael Scire
d772b823c6 Stratosphere: Implement support for deferred commands. Finish sm GetService()'s deferred path. 2018-04-22 03:02:19 -06:00
Michael Scire
5a8df9f128 Stratosphere: extract common code to libstratosphere. 2018-04-21 20:31:06 -06:00