Skip to content
Snippets Groups Projects
  1. Dec 01, 2016
    • Subv's avatar
      Fixed the rebase mistakes. · 2eceee3a
      Subv authored
      2eceee3a
    • Subv's avatar
      A bit of a redesign. · 009b15b3
      Subv authored
      Sessions and Ports are now detached from each other.
      HLE services are handled by means of a SessionRequestHandler class, Interface now inherits from this class.
      The File and Directory classes are no longer kernel objects, but SessionRequestHandlers instead, bound to a ServerSession when requested.
      File::OpenLinkFile now creates a new session pair and binds the File instance to it.
      009b15b3
    • Subv's avatar
      IPC/HLE: Associate the ClientSessions with their parent port's HLE interface if it exists. · c5e7e0fa
      Subv authored
      Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request.
      c5e7e0fa
    • Subv's avatar
      Kernel/HLE: Service::Interface no longer inherits from any Kernel object, and... · c19afd21
      Subv authored
      Kernel/HLE: Service::Interface no longer inherits from any Kernel object, and is now its own standalone class.
      
      Interface is now used by aggregation in ClientPort, to forward service commands to their HLE implementation if needed.
      c19afd21
    • Subv's avatar
      fixup! Kernel/IPC: Use Ports and Sessions as the fundamental building block... · 0a33d915
      Subv authored
      fixup!  Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
      0a33d915
    • Subv's avatar
      Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter... · 073653e8
      Subv authored
       Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
      
      All handles obtained via srv::GetServiceHandle or svcConnectToPort are references to ClientSessions.
      Service modules will wait on the counterpart of those ClientSessions (Called ServerSessions) using svcReplyAndReceive or svcWaitSynchronization[1|N], and will be awoken when a SyncRequest is performed.
      
      HLE Interfaces are now ClientPorts which override the HandleSyncRequest virtual member function to perform command handling immediately.
      073653e8
  2. Nov 30, 2016
  3. Sep 21, 2016
  4. Sep 18, 2016
  5. Jun 27, 2015
  6. May 07, 2015
  7. Apr 14, 2015
  8. Mar 04, 2015
    • Subv's avatar
      Services: Moved the PTM and APT services to their own folder · 83a8975c
      Subv authored
      This coincidentally fixes an issue about the PTM service failing to create its SharedExtSaveData archive due to the FS service not being initialized by the time the creating code runs.
      
      Ideally I'd like to move each process to its own folder, and have a single file per process that registers the service classes, which would be in their own files inside that folder. Then each service class would just call functions from the process to complete the commands.
      83a8975c
  9. Feb 02, 2015
  10. Jan 10, 2015
  11. Jan 07, 2015
  12. Dec 28, 2014
    • Yuri Kunde Schlesner's avatar
      Kernel: New handle manager · 7e2903cb
      Yuri Kunde Schlesner authored
      This handle manager more closely mirrors the behaviour of the CTR-OS
      one. In addition object ref-counts and support for DuplicateHandle have
      been added.
      
      Note that support for DuplicateHandle is still experimental, since parts
      of the kernel still use Handles internally, which will likely cause
      troubles if two different handles to the same object are used to e.g.
      wait on a synchronization primitive.
      7e2903cb
    • Yuri Kunde Schlesner's avatar
      Rename ObjectPool to HandleTable · 73fba22c
      Yuri Kunde Schlesner authored
      73fba22c
  13. Dec 21, 2014
  14. Dec 15, 2014
  15. Dec 13, 2014
  16. Nov 24, 2014
    • archshift's avatar
    • Yuri Kunde Schlesner's avatar
    • Yuri Kunde Schlesner's avatar
      HLE: Revamp error handling throrough the HLE code · c2588403
      Yuri Kunde Schlesner authored
      All service calls in the CTR OS return result codes indicating the
      success or failure of the call. Previous to this commit, Citra's HLE
      emulation of services and the kernel universally either ignored errors
      or returned dummy -1 error codes.
      
      This commit makes an initial effort to provide an infrastructure for
      error reporting and propagation which can be use going forward to make
      HLE calls accurately return errors as the original system. A few parts
      of the code have been updated to use the new system where applicable.
      
      One part of this effort is the definition of the `ResultCode` type,
      which provides facilities for constructing and parsing error codes in
      the structured format used by the CTR.
      
      The `ResultVal` type builds on `ResultCode` by providing a container for
      values returned by function that can report errors. It enforces that
      correct error checking will be done on function returns by preventing
      the use of the return value if the function returned an error code.
      
      Currently this change is mostly internal since errors are still
      suppressed on the ARM<->HLE border, as a temporary compatibility hack.
      As functionality is implemented and tested this hack can be eventually
      removed.
      c2588403
  17. Nov 19, 2014
  18. Oct 26, 2014
  19. Sep 06, 2014
  20. Aug 18, 2014
  21. Jun 13, 2014
  22. Jun 04, 2014
  23. May 30, 2014
  24. May 29, 2014
  25. May 28, 2014
  26. May 27, 2014
Loading