aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle
AgeCommit message (Collapse)Author
2016-12-03Threading: Reworked the way our scheduler works.Subv
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.
2016-12-02Declare empty ServerSession and ClientSession constructors as default.Subv
2016-12-01Threads do not wait for the server endpoint to call AcceptSession before ↵Subv
returning from a ConnectToPort or GetServiceHandle call.
2016-11-30Fixed the rebase mistakes.Subv
2016-11-30A bit of a redesign.Subv
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.
2016-11-30IPC/HLE: Associate the ClientSessions with their parent port's HLE interface ↵Subv
if it exists. Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request.
2016-11-30Kernel/HLE: Service::Interface no longer inherits from any Kernel object, ↵Subv
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.
2016-11-30fixup! Kernel/IPC: Use Ports and Sessions as the fundamental building block ↵Subv
of Inter Process Communication.
2016-11-30 Kernel/IPC: Use Ports and Sessions as the fundamental building block of ↵Subv
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.
2016-11-30Set client SDK version to Service APIsmailwl
2016-11-29FileSys: Implement OtherSaveDatawwylele
2016-11-29FS: add missing MediaTypewwylele
2016-11-29FileSys: abstract SD save data archive sourcewwylele
2016-11-27Merge pull request #2196 from Subv/system_modeYuri Kunde Schlesner
Kernel/Loader: Grab the system mode from the NCCH ExHeader.
2016-11-27Merge pull request #2132 from wwylele/fix-fs-errSebastian Valle
Correct FS error codes & add path boundary checks
2016-11-25Output parameters to logmailwl
2016-11-25MIC_U: Stub service funcionsmailwl
2016-11-23Bravely Default/Second stuck #1822 (#2188)pippo2931
* Bravely Default/Second stuck #1822 CancelLibraryApplet stub * Log parameter. * Taking care of comments * Sync with 3DBrew * White space ? * lower case
2016-11-23Merge pull request #2186 from wwylele/config9Yuri Kunde Schlesner
cfg: add config block 0x00090000
2016-11-23Merge pull request #1654 from JamePeng/errdispYuri Kunde Schlesner
Rework the code of err:f service!
2016-11-19Merge pull request #2193 from Subv/pulse_eventsbunnei
Kernel/Events: Log an error when trying to create Pulse events and timers
2016-11-19Kernel/Loader: Grab the system mode from the NCCH ExHeader.Subv
3dsx and elf files default to system mode 2 (96MB allocated to the application). This allows Home Menu to boot without modifications. Closes #1849
2016-11-19Kernel/Events: Log an error when trying to create Pulse events and timers.Subv
Related to #1904
2016-11-19APT/Applets: Renamed the members of the SignalType enum.Subv
Names now make sense and match 3dbrew.
2016-11-19FileSys: rename SaveDataCheck archive to NCCH archivewwylele
According to the observation from game and 3dbrew "Used for accessing general NCCH data"
2016-11-19PTM & CFG: use the correct path and error code according to the new FileSys ↵wwylele
policy
2016-11-19FileSys: add SDMCWriteOnlyArchivewwylele
2016-11-19FileSys: add ExtSaveDataArchivewwylele
ExtSaveData is more similar to SaveData, so let it be a subclass of SaveData
2016-11-19FileSys: add SaveDataArchivewwylele
The error checking of SaveDataArchive is completely different from DiskArchive, so it has to be a new class instead of a subclass of DiskArchive.
2016-11-17cfg: add config block 0x00090000wwylele
2016-11-02Style fixmailwl
2016-11-02Rename AcConfig, change types u8 to u32mailwl
2016-11-02AC_U: Stub functions, used if EULA agreedmailwl
2016-11-01FileSys: make Archive interfaces return error codewwylele
and make the mode parameter a reference since it is a BitField union
2016-10-31Merge pull request #2126 from wwylele/stub-nwmbunnei
NWM: stub Initialize with an error
2016-10-27core: some errno values are uncommon on UnixJan Beich
src/core/hle/service/soc_u.cpp:107:6: error: 'ENODATA' was not declared in this scope {ENODATA, 43}, ^ src/core/hle/service/soc_u.cpp:117:6: error: 'ENOSR' was not declared in this scope {ENOSR, 53}, ^ src/core/hle/service/soc_u.cpp:118:6: error: 'ENOSTR' was not declared in this scope {ENOSTR, 54}, ^ src/core/hle/service/soc_u.cpp:139:6: error: 'ETIME' was not declared in this scope {ETIME, 75}, ^
2016-10-25FRD: fix GetMyFriendKeymailwl
2016-10-20Fix typosRicardo de Almeida Gonzaga
2016-10-12NWM: stub Initialize with an errorwwylele
2016-10-07Merge pull request #2024 from JamePeng/update-boss-codebunnei
Update the stub code of BOSS
2016-10-06Rework the code of err:f serviceJamePeng
2016-10-04Merge pull request #1652 from wwylele/kernal-toolbunnei
Debugger: implement wait tree widget
2016-10-02Update the stub code of BOSSJamePeng
2016-10-02fs: clean up log formatwwylele
2016-10-02fs: implement DeleteDirectoryRecursivelywwylele
2016-09-22move ResetType to kernel.hwwylele
2016-09-22name objectswwylele
2016-09-22implement wait tree widgetwwylele
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.