1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 06:01:52 +00:00
Commit graph

49 commits

Author SHA1 Message Date
Michael Scire
cf510ad9bf pm: Only register privileged processes with FS as needed 2018-11-08 05:28:52 -08:00
Michael Scire
54a22797a7 Make libstratosphere a submodule 2018-11-08 01:24:40 -08:00
Michael Scire
3b8bb325e8 pm: Use non-system event for process tracking. 2018-11-07 23:43:59 -08:00
Michael Scire
6ef34d80a0 libstrat: automatically detect+format rawdata structs correctly. 2018-10-31 05:04:00 +09:00
Michael Scire
887b4e0275 pm: update for libstratosphere refactor 2018-10-31 05:04:00 +09:00
Michael Scire
06accd00f9 pm: steal memory from 4.0.0+ ? applet : application 2018-10-17 16:28:53 -07:00
Michael Scire
5dc31f001e Stratosphere: Fix FS permissions for <4.0.0 KIPs 2018-10-17 16:26:36 -07:00
Michael Scire
6711cd93a8 atmosphere: extract API version management to common folder 2018-10-16 17:54:50 -07:00
Pika
9ae62a27dd Fix ProcesState enum field names 2018-10-16 20:29:48 +09:00
misson20000
2d6aba7a70 pm: add AtmosphereGetCurrentLimitInfo command to pm:dmnt 2018-10-05 13:55:27 +09:00
Michael Scire
488fc0f119 pm: Support for 6.0.0 2018-09-08 23:47:15 -07:00
hexkyz
28e4d4411d Add and fix copyright notices for better GPL compliance (thanks @naehrwert and @CTCaer). 2018-09-07 16:00:13 +01:00
Michael Scire
441e58be56 anti-telemetry: Do not boot Error Collection sysmodule 2018-08-01 23:15:52 -07:00
Michael Scire
cb4089e49c Stratosphere: use isxdigit to check if char is hex. 2018-07-29 17:27:30 -07:00
Michael Scire
5a63f4e304 PM: Make boot2 launch SD card content with StorageId_None 2018-07-27 19:34:22 -07:00
Michael Scire
2667266aad pm.boot2: Skeleton hook for SD-mandated launches 2018-07-27 03:22:06 -07:00
Michael Scire
c079803189 PM: Use enum in EmbeddedBoot2 2018-07-27 02:37:45 -07:00
Michael Scire
9f16062767 PM: Embed boot2 logic in PM. 2018-07-27 02:23:53 -07:00
misson20000
6adcb483e5 pm: remove magic flag/event numbers to improve readability and understandability 2018-07-27 02:03:28 -07:00
Michael Scire
9d0d9d95e1 Stratosphere: Give more memory to SYSTEM, use less memory. 2018-07-27 01:44:34 -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
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
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
TuxSH
cae107557d Fix the remaining warnings in stratosphère 2018-05-15 00:54:12 +02: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
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
Michael Scire
6d6ecb503a ProcessManager: Fix svcCreateEvent handle inversion bug, and others.
NOTE: Debugging logs have been left in, and will be cleaned up once PM
is working.
2018-05-06 02:23:47 -06:00
Léo Lam
a097babe18 Replace std::make_tuple with simpler syntax (#77)
* boot2: Simplify g_additional_launch_programs

It appears that Stratosphère is targeting C++17. In C++17,
std::make_tuple is not required for initialisating a tuple anymore.
Same thing, but less typing

* Replace std::make_tuple with {}

More readable and less noise. Also fixes two missing return statements.
2018-05-05 11:41:39 -07:00
Michael Scire
772401b81f ProcessManager: Add pm:info, fix pm:shell missing qualifiers 2018-05-04 20:16:40 -06:00
Michael Scire
e596fd0de5 ProcessManager: Implement almost all of pm:shell 2018-05-04 19:57:11 -06:00
Michael Scire
ae830fea95 Process Manager: Add stub for pm:shell 2018-05-04 18:25:26 -06:00
Michael Scire
5d215ef299 Process Manager: Make process flag updating version agnostic, handle 5.x dead process semantics. 2018-05-04 17:55:48 -06:00
Michael Scire
c19750a0d5 ProcessManager: Make launch flag parsing version agnostic. 2018-05-04 01:01:53 -06:00
Michael Scire
d6cf7c605f ProcessManager: Implement core process management logic. 2018-05-03 23:58:37 -06:00
Michael Scire
7ab9f507cb ProcessManager: Fill out ProcessTracking::Initialize() 2018-05-03 16:15:12 -06:00
Michael Scire
54a1529ef4 ProcessManager: fix critical typo in sarcastic comment 2018-05-03 04:10:41 -06:00
Michael Scire
3d2c3e1fe1 ProcessManager: Stub ProcessTracking code. 2018-05-03 04:10:05 -06:00
Michael Scire
0459bcee74 ProcessManager: Acquire ldr:pm during init. 2018-05-03 03:58:45 -06:00
Michael Scire
593efedb2c ProcessManager: Add BootModeInterface 2018-05-03 02:58:11 -06:00
Michael Scire
bd1315022a Stratosphere: Begin work on PM. 2018-05-02 22:18:05 -06:00