summaryrefslogtreecommitdiff
path: root/src/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Threading: Reworked the way our scheduler works.Gravatar Subv2016-12-037-189/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Threads will now be awakened when the objects they're waiting on are signaled, instead of repeating the WaitSynchronization call every now and then. The scheduler is now called once after every SVC call, and once after a thread is awakened from sleep by its timeout callback. This new implementation is based off reverse-engineering of the real kernel. See https://gist.github.com/Subv/02f29bd9f1e5deb7aceea1e8f019c8f4 for a more detailed description of how the real kernel handles rescheduling.
* | | | | Merge pull request #2328 from wwylele/fix-traceGravatar Yuri Kunde Schlesner2016-12-151-11/+9
|\ \ \ \ \ | | | | | | | | | | | | Fix debug build from #2249
| * | | | | FS: fix debug build from #2249Gravatar wwylele2016-12-161-11/+9
| | | | | |
* | | | | | Merge pull request #2332 from lioncash/gdbGravatar Yuri Kunde Schlesner2016-12-155-16/+23
|\ \ \ \ \ \ | | | | | | | | | | | | | | gdbstub: Remove global variable from public interface
| * | | | | | gdbstub: Remove global variable from public interfaceGravatar Lioncash2016-12-155-16/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, this is only ever queried, so adding a function to check if the server is enabled is more sensible. If directly modifying this externally is ever desirable, it should be done by adding a function to the interface, rather than exposing implementation details directly.
* | | | | | | Merge pull request #2320 from mailwl/cecd-updateGravatar Yuri Kunde Schlesner2016-12-158-13/+81
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Service/CECD: Add cecd:ndm service
| * | | | | | | Service/CECD: Add cecd:ndm serviceGravatar mailwl2016-12-158-13/+81
| | | | | | | |
* | | | | | | | Merge pull request #2331 from lioncash/truncGravatar bunnei2016-12-151-1/+2
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | hid: Get rid of a double -> float truncation warning
| * | | | | | | hid: Get rid of a double -> float truncation warningGravatar Lioncash2016-12-151-1/+2
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | float literals need to have the 'f' prefix.
* | | | | | | Merge pull request #2330 from lioncash/pragmaGravatar Sebastian Valle2016-12-153-0/+6
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | core: Add missing #pragma once directives where applicable
| * | | | | | | core: Add missing #pragma once directives where applicableGravatar Lioncash2016-12-153-0/+6
| |/ / / / / /
* / / / / / / act: Fix docstring typoGravatar Lioncash2016-12-151-1/+1
|/ / / / / / | | | | | | | | | | | | | | | | | | These aren't the AM services.
* | | | | | Merge pull request #2314 from mailwl/accountGravatar bunnei2016-12-158-10/+44
|\ \ \ \ \ \ | | | | | | | | | | | | | | Service/ACT: move ACT services to folder
| * | | | | | Service/ACT: move ACT services to folderGravatar mailwl2016-12-148-10/+44
| | |_|/ / / | |/| | | |
* | | | | | Memory: Always flush whole pages from surface cacheGravatar Yuri Kunde Schlesner2016-12-141-0/+10
| |/ / / / |/| | | | | | | | | | | | | | | | | | | This prevents individual writes touching a cached page, but which don't overlap the surface, from constantly hitting the surface cache lookup.
* | | | | Merge pull request #2249 from Subv/sessions_v3Gravatar Yuri Kunde Schlesner2016-12-1424-170/+591
|\ \ \ \ \ | |/ / / / |/| | | | Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
| * | | | Fixed the codestyle to match our clang-format rules.Gravatar Subv2016-12-1416-68/+108
| | | | |
| * | | | Moved the HLE command buffer translation task to ServerSession instead of ↵Gravatar Subv2016-12-096-47/+38
| | | | | | | | | | | | | | | | | | | | the HLE handler superclass.
| * | | | Kernel/IPC: Small codestyle cleanupGravatar Subv2016-12-092-3/+1
| | | | |
| * | | | Added a framework for partially handling Session disconnections.Gravatar Subv2016-12-088-9/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Further implementation will happen in a future commit. Fixes a regression.
| * | | | Use std::move where appropriate.Gravatar Subv2016-12-0812-177/+187
| | | | |
| * | | | Return an error code when connecting to a saturated port.Gravatar Subv2016-12-055-7/+20
| | | | | | | | | | | | | | | | | | | | The error code was taken from the 3DS kernel.
| * | | | HLE: Use a member variable instead of a virtual function to retrieve the max ↵Gravatar Subv2016-12-055-8/+18
| | | | | | | | | | | | | | | | | | | | number of sessions that can be connected to an HLE service at the same time.
| * | | | Split SessionRequestHandler::HandleSyncRequest into HandleSyncRequest, ↵Gravatar Subv2016-12-056-22/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TranslateRequest and HandleSyncRequestImpl. HandleSyncRequest now takes care of calling the command buffer translate function before actually invoking the command handler for HLE services.
| * | | | Kernel: Remove the Redirection handle type.Gravatar Subv2016-12-051-2/+0
| | | | |
| * | | | KServerPorts now have an HLE handler "template", which is inherited by all ↵Gravatar Subv2016-12-0512-69/+86
| | | | | | | | | | | | | | | | | | | | ServerSessions created from it.
| * | | | Declare empty ServerSession and ClientSession constructors as default.Gravatar Subv2016-12-022-4/+4
| | | | |
| * | | | Threads do not wait for the server endpoint to call AcceptSession before ↵Gravatar Subv2016-12-012-3/+5
| | | | | | | | | | | | | | | | | | | | returning from a ConnectToPort or GetServiceHandle call.
| * | | | Fixed the rebase mistakes.Gravatar Subv2016-11-3010-82/+76
| | | | |
| * | | | A bit of a redesign.Gravatar Subv2016-11-3013-263/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | IPC/HLE: Associate the ClientSessions with their parent port's HLE interface ↵Gravatar Subv2016-11-306-26/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if it exists. Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request.
| * | | | Kernel/HLE: Service::Interface no longer inherits from any Kernel object, ↵Gravatar Subv2016-11-304-24/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | fixup! Kernel/IPC: Use Ports and Sessions as the fundamental building block ↵Gravatar Subv2016-11-304-5/+6
| | | | | | | | | | | | | | | | | | | | of Inter Process Communication.
| * | | | Kernel/IPC: Use Ports and Sessions as the fundamental building block of ↵Gravatar Subv2016-11-3016-88/+314
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | / / Minor amendment of GSP_GPU::ImportDisplayCaptureInfo codeGravatar JamePeng2016-12-131-3/+5
| |/ / |/| |
* | | Merge pull request #2267 from JayFoxRox/fix-mingw-ccGravatar Sebastian Valle2016-12-111-2/+2
|\ \ \ | | | | | | | | Support mingw cross-compilation
| * | | gdbstub: Remove unused includeGravatar Jannik Vogel2016-12-051-1/+0
| | | |
| * | | Support mingw cross-compileGravatar Jannik Vogel2016-12-051-1/+2
| | | |
* | | | APT::GetStartupArgument: force clear startup argumentGravatar mailwl2016-12-112-5/+11
| | | |
* | | | Core: Add a forgotten #include <cstring> for memcpy.Gravatar Emmanuel Gil Peyrot2016-12-111-0/+1
| | | |
* | | | Add all services to the Service namespaceGravatar Lioncash2016-12-1145-482/+390
| | | | | | | | | | | | | | | | | | | | Previously there was a split where some of the services were in the Service namespace and others were not.
* | | | Merge pull request #2291 from lioncash/svcGravatar bunnei2016-12-0910-12/+61
|\ \ \ \ | | | | | | | | | | service: Add the cfg:nor service
| * | | | service: Add cfg:nor serviceGravatar Lioncash2016-12-094-0/+49
| | | | |
| * | | | service: Drop '_Interface' from cfg service namesGravatar Lioncash2016-12-097-12/+12
| | | | |
* | | | | Merge pull request #2292 from lioncash/boolGravatar Yuri Kunde Schlesner2016-12-091-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | ptm: Use boolean instead of integral value
| * | | | ptm: Use boolean instead of integral valueGravatar Lioncash2016-12-091-1/+1
| | | | | | | | | | | | | | | | | | | | The third parameter of Write is actually a bool type, not an int.
* | | | | Merge pull request #2287 from lioncash/svcGravatar Yuri Kunde Schlesner2016-12-0812-12/+170
|\ \ \ \ \ | | | | | | | | | | | | service: Minor PTM changes
| * | | | | service: Add the ptm:s serviceGravatar Lioncash2016-12-083-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | 3dbrew documents this as being the exact same as ptm:sysm
| * | | | | service: Add common ptm:u commands to other ptm servicesGravatar Lioncash2016-12-084-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3dbrew indicates that all services have access to these commands except for ptm:sets.
| * | | | | service: Drop '_Interface' in ptm service class namesGravatar Lioncash2016-12-087-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | Inheriting from Service::Interface makes this obvious.