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

71 commits

Author SHA1 Message Date
Michael Scire
59140d8dfa sf-impl: remove debug condition 2019-12-07 12:41:28 -08:00
Michael Scire
aa0826bb70 pm: update for new-ipc 2019-12-07 12:41:28 -08:00
Michael Scire
2f959785e1 loader: update for new-ipc 2019-12-07 12:41:28 -08:00
Michael Scire
0c7827104f hipc: begin implementing domains. fixes ro + sm together 2019-12-07 12:41:28 -08:00
Michael Scire
c8ed190e5c new-ipc: implement deferral. sm now works. 2019-12-07 12:41:28 -08:00
Michael Scire
f4dcd1db9b sf: implement service framework enough for ro to work.
This completely re-does the whole interface for ipc servers.
2019-12-07 12:41:28 -08:00
Michael Scire
bd341d5c00 libstrat: update for latest libnx, delete ipc in prep for rewrite 2019-12-07 12:41:28 -08:00
Michael Scire
add18d868f sts: add STS_UNREACHABLE_DEFAULT_CASE() 2019-12-07 12:41:28 -08:00
Michael Scire
609a302e16 os: implement waitable management.
This implements waitable management for Events (and
implements Events). It also refactors PM to use new
Event/Waitable semantics, and also adds STS_ASSERT
as a macro for asserting a boolean expression. The
rest of stratosphere has been refactored to use
STS_ASSERT whenever possible.
2019-12-07 12:41:28 -08:00
Michael Scire
e07011be32 mitm: fix long-standing C descriptor issue. 2019-12-07 12:41:28 -08:00
Michael Scire
bb223eb5ae libstrat: namespace hossynch.hpp 2019-12-07 12:41:28 -08:00
Michael Scire
78a730ddf6 dmnt: refactor to use sts:: namespace. 2019-09-18 11:54:30 -07:00
Michael Scire
93d83c5bb9 ams: initial support for 9.0.0 2019-09-14 10:43:39 -07:00
Michael Scire
39d041466d fatal: refactor into sts namespace 2019-07-23 14:01:16 -07:00
Michael Scire
442ebff829 util: fix copy/paste error in intrusive lists 2019-07-23 14:01:16 -07:00
Michael Scire
d95e20952c kvdb: fix iterator access issue 2019-07-18 20:34:15 -07:00
Michael Scire
f534d3498e git subrepo clone https://github.com/Atmosphere-NX/libstratosphere stratosphere/libstratosphere
subrepo:
  subdir:   "stratosphere/libstratosphere"
  merged:   "0c5dab80"
upstream:
  origin:   "https://github.com/Atmosphere-NX/libstratosphere"
  branch:   "master"
  commit:   "0c5dab80"
git-subrepo:
  version:  "0.4.0"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "5d6aba9"
2019-07-17 20:04:00 -07:00
Michael Scire
5ef01edab5 Delete libstratosphere in prep for submodule 2018-11-08 01:12:30 -08:00
Michael Scire
6538554485 libstratosphere: add ReadOnlySystemEvent helper 2018-11-07 23:25:16 -08:00
Michael Scire
9b1a2451b0 libstratosphere: Add thread primitive, WaitableManager->RequestStop() 2018-11-07 23:25:11 -08:00
Michael Scire
e65bee0d6a libstratosphere: Implement message queues 2018-11-07 23:25:00 -08:00
Michael Scire
8426a4dc77 libstrat: Use iterators when looping deferred waitables 2018-11-07 22:59:30 -08:00
Michael Scire
147f3c690a libstrat: Significantly cleanup waitable manager result handling. 2018-11-07 22:40:19 -08:00
Michael Scire
bac81f4ccc libstrat: fix potential oob deref in WaitableManager (closes #256) 2018-11-07 19:10:04 -08:00
Michael Scire
2894989eb7 libstrat: improve waitable manager cancelsync semantics 2018-11-07 12:42:06 -08:00
Michael Scire
952ee4227d libstrat: update curthreadhandle for libnx 1.5.0 2018-11-05 22:56:04 -08:00
Michael Scire
9142e90a04 libstratosphere: Use intraprocess event signaling for new waitable management 2018-11-05 18:35:21 -08:00
Michael Scire
3ed239296a libstrat: Allow nullptr buffers if 0 size. (closes #255) 2018-11-04 21:52:53 -08:00
Michael Scire
e786bc7e9a fs.mitm: Only create storage interface when needed. 2018-11-04 12:45:29 -08:00
Michael Scire
be044e691c libstrat: delete old ipc templating. 2018-10-30 15:57:15 -07:00
TuxSH
536b89efae Add boost as submodule 2018-10-30 23:49:26 +01:00
Michael Scire
44175058f6 libstrat: mark ServiceObjectHolder functions const 2018-10-31 05:04:00 +09:00
Michael Scire
6336089b63 libstrat: remove unused struct in serializer 2018-10-31 05:04:00 +09:00
Michael Scire
6ef34d80a0 libstrat: automatically detect+format rawdata structs correctly. 2018-10-31 05:04:00 +09:00
Michael Scire
4cdd9aa8f1 libstratosphere: Fix uninitialized memory bug. 2018-10-31 05:04:00 +09:00
Michael Scire
23a85a7c24 fs.mitm: split out set.mitm 2018-10-31 05:04:00 +09:00
Michael Scire
058f735031 libstratosphere: refactor everything 2018-10-31 05:04:00 +09:00
Michael Scire
c0fe4f7af7 fs.mitm: Intercept qlaunch sysver request 2018-10-24 14:16:39 -07:00
Michael Scire
781f2597e5 libstratosphere: Fix receive for multi-static IPC buffers 2018-10-17 03:49:05 -07:00
Michael Scire
6711cd93a8 atmosphere: extract API version management to common folder 2018-10-16 17:54:50 -07:00
Michael Scire
f603dbfc98 fs.mitm: Add domain support (closes #202) 2018-10-16 13:33:45 -07:00
Michael Scire
0cad1935dd libstratosphere: Fix condvar wrapper primitives 2018-09-09 07:04:16 -07: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
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
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
Michael Scire
8da27723fc fs.mitm: Fix c++ modernization breaking changes 2018-06-27 23:02:06 -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
4d36697080 Make PM Compile. Note: Currently broken. 2018-06-14 23:32:01 -06:00