| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
Fix debug build from #2249
|
| | | | | | | |
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
gdbstub: Remove global variable from public interface
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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.
|
| |\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Service/CECD: Add cecd:ndm service
|
| | | | | | | | | |
|
| |\ \ \ \ \ \ \ \
| |_|/ / / / / /
|/| | | | | | | |
hid: Get rid of a double -> float truncation warning
|
| | | |/ / / / /
| |/| | | | |
| | | | | | |
| | | | | | | |
float literals need to have the 'f' prefix.
|
| |\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
core: Add missing #pragma once directives where applicable
|
| | |/ / / / / / |
|
| |/ / / / / /
| | | | | |
| | | | | |
| | | | | | |
These aren't the AM services.
|
| |\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Service/ACT: move ACT services to folder
|
| | | |_|/ / /
| |/| | | | |
|
| | |/ / / /
|/| | | |
| | | | |
| | | | |
| | | | | |
This prevents individual writes touching a cached page, but which don't
overlap the surface, from constantly hitting the surface cache lookup.
|
| |\ \ \ \ \
| |/ / / /
|/| | | | |
Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
the HLE handler superclass.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Further implementation will happen in a future commit.
Fixes a regression.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
The error code was taken from the 3DS kernel.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
number of sessions that can be connected to an HLE service at the same time.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
TranslateRequest and HandleSyncRequestImpl.
HandleSyncRequest now takes care of calling the command buffer translate function before actually invoking the command handler for HLE services.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
ServerSessions created from it.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
returning from a ConnectToPort or GetServiceHandle call.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
if it exists.
Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
of Inter Process Communication.
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | |/ /
|/| | |
|
| |\ \ \
| | | |
| | | | |
Support mingw cross-compilation
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Previously there was a split where some of the services were in the
Service namespace and others were not.
|
| |\ \ \ \
| | | | |
| | | | | |
service: Add the cfg:nor service
|
| | | | | | |
|
| | | | | | |
|
| |\ \ \ \ \
| |/ / / /
|/| | | | |
ptm: Use boolean instead of integral value
|
| | | | | |
| | | | |
| | | | |
| | | | | |
The third parameter of Write is actually a bool type, not an int.
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
service: Minor PTM changes
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
3dbrew documents this as being the exact same as ptm:sysm
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
3dbrew indicates that all services have access to these commands
except for ptm:sets.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Inheriting from Service::Interface makes this obvious.
|