Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2018-02-03 | ArbitrateLock: Assert that requesting_thread is current_thread. | bunnei | 1 | -0/+1 | |
2018-01-25 | hle: Remove Domain and SyncObject kernel objects. | bunnei | 1 | -2/+1 | |
2018-01-21 | Format: Run the new clang format on everything | James Rowe | 1 | -4/+6 | |
2018-01-20 | Added CreateSharedMemory & UNIMPLEMENTED() for non existent services. (#113) | David | 1 | -1/+13 | |
* Added svcCreateSharedMemory * Services which are not implemented now throw UNIMPLEMENTED() * clang-format * changed perms to u32 * removed camelcase | |||||
2018-01-19 | svc: Fix svcGetInfo MapRegionBaseAddr. | bunnei | 1 | -1/+1 | |
2018-01-18 | svc: Rename some entries to match their analogue on SwitchBrew | Lioncash | 1 | -7/+7 | |
Makes the codebase a little more consistent with regards to available documentation. Also amends the duplicate case where there was a similar entry at 0x72 named ConnectToPort. | |||||
2018-01-18 | svc: Add CreateJitMemory and MapJitMemory svc strings | Lioncash | 1 | -2/+2 | |
Makes the table match SwitchBrew for these entries | |||||
2018-01-17 | svc: Clang-format fix. | bunnei | 1 | -6/+4 | |
2018-01-17 | SVC: Correct some return values in svcGetInfo and added TitleId and PrivilegedProcessId stubs. | Subv | 1 | -6/+21 | |
# Conflicts: # src/core/hle/kernel/svc.cpp | |||||
2018-01-16 | SetThreadCoreMask stub, time to implement fsp | David Marcec | 1 | -1/+6 | |
2018-01-16 | Added more svcGetInfo pairs | David Marcec | 1 | -0/+12 | |
2018-01-16 | clang-format | MerryMage | 1 | -6/+4 | |
2018-01-14 | svc: Implement svcMapSharedMemory. | bunnei | 1 | -1/+33 | |
2018-01-13 | yuzu: Update license text to be consistent across project. | bunnei | 1 | -1/+1 | |
2018-01-12 | core: Include <algorithm> where used. | bunnei | 1 | -0/+2 | |
2018-01-12 | svc: Implement GetSystemTick. | bunnei | 1 | -2/+13 | |
2018-01-11 | svc: Stub ResetSignal and CreateTransferMemory | Subv | 1 | -3/+20 | |
2018-01-11 | svc: Stub SetMemoryAttribute | Subv | 1 | -0/+5 | |
2018-01-10 | Threads: Added enum values for the Switch's 4 cpu cores and implemented svcGetInfo(AllowedCpuIdBitmask) | Subv | 1 | -6/+11 | |
2018-01-09 | SVC: Fixed WaitSynchronization with multiple handles when none is immediately ready. | Subv | 1 | -7/+18 | |
2018-01-09 | SVC: Implemented CancelSynchronization. | Subv | 1 | -1/+17 | |
2018-01-09 | SVC: Fixed WaitSynchronization with multiple handles when at least one of them is ready. | Subv | 1 | -1/+24 | |
2018-01-09 | kernel: Rename Semaphore to ConditionVariable. | bunnei | 1 | -25/+33 | |
2018-01-09 | Kernel: Actually wake up the requested number of threads in Semaphore::Release. | Subv | 1 | -1/+1 | |
Also properly keep track of data in guest memory, this fixes managing the semaphore from userland. It was found that Semaphores are actually Condition Variables, with Release(1) and Release(-1) being equivalent to notify_one and notify_all. We should change the name of the class to reflect this. | |||||
2018-01-09 | Kernel: Properly keep track of mutex lock data in the guest memory. This fixes userland locking/unlocking. | Subv | 1 | -1/+4 | |
2018-01-09 | Kernel: Allow chaining WaitSynchronization calls inside a wakeup callback. | Subv | 1 | -15/+41 | |
2018-01-07 | svc: Implement svcSignalProcessWideKey. | bunnei | 1 | -2/+21 | |
2018-01-06 | svc: Implement svcWaitProcessWideKeyAtomic. | bunnei | 1 | -1/+49 | |
2018-01-06 | svc: Implement WaitSynchronization for a single handle. | bunnei | 1 | -4/+24 | |
2018-01-06 | svc: Refactor LockMutex code to use WaitSynchronization1. | bunnei | 1 | -13/+45 | |
2018-01-05 | svc: Add missing string_util include. | bunnei | 1 | -0/+1 | |
2018-01-03 | arm: Remove SkyEye/Dyncom code that is ARMv6-only. | bunnei | 1 | -19/+9 | |
2018-01-03 | svc: Remove unnecessary "svc" prefix to naming scheme. | bunnei | 1 | -106/+106 | |
2018-01-03 | hle: Move SVC code to kernel namespace. | bunnei | 1 | -100/+93 | |
2018-01-01 | svc: Improve svcGetInfo. | bunnei | 1 | -7/+29 | |
2018-01-01 | svc: Fix string formatting for CreateThread. | bunnei | 1 | -1/+1 | |
2018-01-01 | svc: Stub out svcWaitSynchronization. | bunnei | 1 | -1/+9 | |
- This does not matter until we implement other kernel objects, mutexes use svcLockMutex for waiting. | |||||
2018-01-01 | svc: Implement svcExitProcess. | bunnei | 1 | -4/+39 | |
2018-01-01 | svc: Implement svcUnlockMutex. | bunnei | 1 | -1/+11 | |
2018-01-01 | svc: Implement svcLockMutex. | bunnei | 1 | -1/+39 | |
2017-12-31 | thread: Keep track of the initially created handle. | bunnei | 1 | -1/+2 | |
This is kinda crufty, but we need it for now to update guest state variables. | |||||
2017-12-31 | svc: Implement svcExitThread. | bunnei | 1 | -1/+9 | |
2017-12-31 | svc: Implement svcCreateThread. | bunnei | 1 | -2/+57 | |
2017-12-31 | svc: Cleanup svcGetThreadPriority. | bunnei | 1 | -3/+5 | |
2017-12-31 | svc: Stub out svcGetCurrentProcessorNumber. | bunnei | 1 | -1/+7 | |
2017-12-31 | svc: Implement svcSetThreadPriority. | bunnei | 1 | -1/+30 | |
2017-12-31 | svc: Change SignalProcessWideKey to a stub. | bunnei | 1 | -2/+2 | |
2017-12-31 | svc: Implement svcUnmapMemory. | bunnei | 1 | -1/+8 | |
2017-12-30 | svc: Minor cleanups. | bunnei | 1 | -8/+9 | |
2017-12-30 | svc: Implement svcStartThread. | bunnei | 1 | -0/+16 | |
2017-12-29 | kernel: Add SyncObject primitive, use it for ClientSession. | bunnei | 1 | -2/+2 | |
2017-12-29 | svc: Implement MapMemory. | bunnei | 1 | -3/+11 | |
2017-12-28 | svc: Implement SetHeapSize. | bunnei | 1 | -1/+9 | |
2017-10-23 | svc: Implement GetThreadId and GetProcessId. | bunnei | 1 | -2/+29 | |
2017-10-20 | hle: Fix QueryMemory response for MemoryInfo. | bunnei | 1 | -17/+11 | |
2017-10-15 | hle: Initial implementation of NX service framework and IPC. | bunnei | 1 | -0/+1 | |
2017-10-14 | svc: Some logging cleanup. | bunnei | 1 | -7/+5 | |
2017-10-14 | svc: Initial nx impl. for QueryMemory, ConnectToPort, SendSyncRequest, etc. | bunnei | 1 | -1185/+185 | |
2017-10-04 | SVC: Removed GetPointer usage in the GetResourceLimit functions. | Subv | 1 | -10/+16 | |
2017-10-04 | SVC: Remove GetPointer usage in CreatePort. | Subv | 1 | -2/+2 | |
2017-10-04 | SVC: Replace GetPointer usage with ReadCString in ConnectToPort. | Subv | 1 | -5/+9 | |
2017-10-04 | SVC: Replace GetPointer usage with ReadBlock in OutputDebugString. | Subv | 1 | -2/+4 | |
2017-10-04 | SVC: Replace GetPointer usage with Read32 in ReplyAndReceive. | Subv | 1 | -4/+4 | |
2017-10-04 | SVC: Replace GetPointer usage with Read32 in WaitSynchronizationN. | Subv | 1 | -4/+4 | |
2017-09-30 | Moved down_count to CoreTiming | Huw Pascoe | 1 | -1/+1 | |
2017-09-30 | Fixed type conversion ambiguity | Huw Pascoe | 1 | -4/+4 | |
2017-09-28 | Kernel/Threads: When putting a thread to wait, specify a function to execute when it is awoken. | Subv | 1 | -4/+65 | |
This change makes for a clearer (less confusing) path of execution in the scheduler, now the code to execute when a thread awakes is closer to the code that puts the thread to sleep (WaitSynch1, WaitSynchN). It also allows us to implement the special wake up behavior of ReplyAndReceive without hacking up WaitObject::WakeupAllWaitingThreads. If savestates are desired in the future, we can change this implementation to one similar to the CoreTiming event system, where we first register the callback functions at startup and assign their identifiers to the Thread callback variable instead of directly assigning a lambda to the wake up callback variable. | |||||
2017-09-27 | Kernel/Thread: Allow specifying which process a thread belongs to when creating it. | Subv | 1 | -2/+3 | |
Don't automatically assume that Thread::Create will only be called when the parent process is currently scheduled. This assumption will be broken when applets or system modules are loaded. | |||||
2017-08-29 | Use recursive_mutex instead of mutex to fix #2902 | danzel | 1 | -1/+1 | |
2017-08-22 | Kernel/HLE: Use a mutex to synchronize access to the HLE kernel state between the cpu thread and any other possible threads that might touch the kernel (network thread, etc). | Subv | 1 | -2/+6 | |
This mutex is acquired in SVC::CallSVC, ie, as soon as the guest application enters the HLE kernel, and should be acquired by the aforementioned threads before modifying kernel structures. | |||||
2017-06-29 | Kernel/SVC: Pass the current thread as a parameter to ClientSession::SendSyncRequest. | Subv | 1 | -1/+1 | |
2017-06-26 | Kernel/SVC: Partially implemented svcReplyAndReceive. | Subv | 1 | -1/+108 | |
It behaves mostly as WaitSynchronizationN with wait_all = false, except for IPC buffer translation. The target thread of an IPC response will now wake up when responding. IPC buffer translation is currently not implemented. Error passing back to svcSendSyncRequest is currently not implemented. | |||||
2017-06-23 | Kernel: Implement AcceptSession SVC | Yuri Kunde Schlesner | 1 | -1/+12 | |
2017-06-23 | Kernel: Implement CreateSessionToPort SVC | Yuri Kunde Schlesner | 1 | -1/+12 | |
2017-06-22 | Kernel: Implement CreateSession SVC | Yuri Kunde Schlesner | 1 | -3/+16 | |
2017-05-30 | Kernel: Move HandleTable to a separate file | Yuri Kunde Schlesner | 1 | -0/+2 | |
2017-05-30 | Kernel: Move WaitObject to a separate file | Yuri Kunde Schlesner | 1 | -0/+1 | |
Now that HandleTable doesn't directly depend on WaitObject anymore, this can be separated from the main kernel.h header. | |||||
2017-05-30 | Kernel: Removed HandleTable::GetWaitObject | Yuri Kunde Schlesner | 1 | -2/+2 | |
This isn't necessary anymore since plain Get works correctly for WaitObjects. | |||||
2017-05-25 | Kernel: Centralize error definitions in errors.h | Yuri Kunde Schlesner | 1 | -65/+31 | |
2017-05-08 | Remove ability to load symbol maps | Yuri Kunde Schlesner | 1 | -8/+2 | |
This was now mostly unused except by thread creation, which used a symbol of the entrypoint, if available, to name the thread. | |||||
2017-04-01 | Fix OutputDebugString syscall | Michael Theall | 1 | -2/+2 | |
2017-03-09 | Refined thread launch on syscore error messages | Fernando Sahmkow | 1 | -5/+15 | |
2017-02-22 | Timers: Return an error when calling SetTimer with negative timeouts. | Subv | 1 | -0/+5 | |
2017-01-11 | Threads: Check the process' resource limit for the max allowed priority when creating a thread and remove the priority clamping code. | Subv | 1 | -5/+7 | |
2017-01-11 | Thread: Added priority range checking to svcSetThreadPriority and removed priority clamping code from Thread::SetPriority. | Subv | 1 | -0/+14 | |
2017-01-06 | Kernel: Fix SharedMemory objects always returning error when addr = 0 (#2404) | Hyper | 1 | -1/+5 | |
Closes #2400 | |||||
2017-01-06 | Kernel: Don't attempt to yield execution in SleepThread(0) if there are no available threads to run. | Subv | 1 | -0/+5 | |
With this we avoid an useless temporary deschedule of the current thread. | |||||
2017-01-05 | Kernel: Remove Thread::wait_objects_index and use wait_objects to hold all the objects that a thread is waiting on. | Subv | 1 | -11/+3 | |
2017-01-04 | Kernel: Use different thread statuses when a thread calls WaitSynchronization1 and WaitSynchronizationN with wait_all = true. | Subv | 1 | -3/+3 | |
This commit removes the overly general THREADSTATUS_WAIT_SYNCH and replaces it with two more granular statuses: THREADSTATUS_WAIT_SYNCH_ANY when a thread waits on objects via WaitSynchronization1 or WaitSynchronizationN with wait_all = false. THREADSTATUS_WAIT_SYNCH_ALL when a thread waits on objects via WaitSynchronizationN with wait_all = true. | |||||
2017-01-04 | Kernel/Mutex: Propagate thread priority changes to other threads inheriting the priority via mutexes | Subv | 1 | -0/+6 | |
2017-01-04 | Kernel/Mutex: Update a mutex priority when a thread stops waiting on it. | Subv | 1 | -2/+3 | |
2017-01-04 | Kernel/Mutex: Implemented priority inheritance. | Subv | 1 | -9/+0 | |
The implementation is based on reverse engineering of the 3DS's kernel. A mutex holder's priority will be temporarily boosted to the best priority among any threads that want to acquire any of its held mutexes. When the holder releases the mutex, it's priority will be boosted to the best priority among the threads that want to acquire any of its remaining held mutexes. | |||||
2017-01-04 | Kernel: Object ShouldWait and Acquire calls now take a thread as a parameter. | Subv | 1 | -6/+6 | |
This will be useful when implementing mutex priority inheritance. | |||||
2017-01-04 | Kernel/Synch: Do not attempt a reschedule on every syscall. | Subv | 1 | -2/+17 | |
Not all syscalls should cause reschedules, this commit attempts to remedy that, however, it still does not cover all cases. | |||||
2016-12-22 | core: Replace "AppCore" nomenclature with just "CPU". | bunnei | 1 | -7/+6 | |
2016-12-22 | Address clang-format issues. | bunnei | 1 | -9/+10 | |
2016-12-22 | core: Remove HLE module, consolidate code & various cleanups. | bunnei | 1 | -35/+35 | |
2016-12-22 | core: Consolidate core and system state, remove system module & cleanups. | bunnei | 1 | -6/+6 | |
2016-12-17 | Thread: remove the thread from the thread list when exiting | wwylele | 1 | -1/+1 | |
2016-12-14 | Fixed the codestyle to match our clang-format rules. | Subv | 1 | -2/+4 | |
2016-12-14 | Fixed the codestyle to match our clang-format rules. | Subv | 1 | -19/+28 | |
2016-12-10 | Properly remove a thread from its wait_objects' waitlist when it is awoken by a timeout. | Subv | 1 | -1/+1 | |
2016-12-09 | WaitSynch: Removed unused variables and reduced SharedPtr copies. | Subv | 1 | -60/+45 | |
Define a variable with the value of the sync timeout error code. Use a boost::flat_map instead of an unordered_map to hold the equivalence of objects and wait indices in a WaitSynchN call. | |||||
2016-12-08 | Use std::move where appropriate. | Subv | 1 | -5/+1 | |
2016-12-05 | Return an error code when connecting to a saturated port. | Subv | 1 | -1/+2 | |
The error code was taken from the 3DS kernel. | |||||
2016-12-05 | KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it. | Subv | 1 | -13/+5 | |
2016-12-04 | Threading: Added some utility functions and const correctness. | Subv | 1 | -5/+13 | |
2016-12-04 | Threading: Reworked the way our scheduler works. | Subv | 1 | -78/+103 | |
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-01 | Threads do not wait for the server endpoint to call AcceptSession before returning from a ConnectToPort or GetServiceHandle call. | Subv | 1 | -2/+3 | |
2016-12-01 | A bit of a redesign. | Subv | 1 | -2/+9 | |
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-12-01 | Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication. | Subv | 1 | -3/+15 | |
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-09-22 | name objects | wwylele | 1 | -0/+4 | |
2016-09-21 | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 1 | -5/+1 | |
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | |||||
2016-09-18 | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 1 | -234/+278 | |
2016-06-11 | Kernel/SVC: Implemented svcCreatePort. | Subv | 1 | -1/+20 | |
2016-05-21 | SVC::WaitSynchronizationN: Reschedule at the end | wwylele | 1 | -2/+3 | |
2016-05-17 | Set fpscr for new threads | Jannik Vogel | 1 | -0/+3 | |
2016-05-13 | Kernel: Implemented shared memory permissions. | Subv | 1 | -0/+2 | |
2016-05-13 | Kernel/SharedMemory: Properly implemented shared memory support. | Subv | 1 | -12/+35 | |
Applications can request the kernel to allocate a piece of the linear heap for them when creating a shared memory object. Shared memory areas are now properly mapped into the target processes when calling svcMapMemoryBlock. Removed the APT Shared Font hack as it is no longer needed. | |||||
2016-05-07 | Kernel/Threading: Warn when a thread can be scheduled in the Syscore (Core 1). | Subv | 1 | -0/+5 | |
We do not currently implement any cores other than the AppCore (Core 0). | |||||
2016-04-29 | Common: Remove section measurement from profiler (#1731) | Yuri Kunde Schlesner | 1 | -4/+0 | |
This has been entirely superseded by MicroProfile. The rest of the code can go when a simpler frametime/FPS meter is added to the GUI. | |||||
2016-04-21 | ac:u: stub CloseAsync; check memory size aling in svc:GetProcessInfo(type=2) | mailwl | 1 | -0/+4 | |
2016-03-13 | svc: Move ResetType enum to the kernel event header | Lioncash | 1 | -2/+2 | |
2016-03-01 | ThreadProcessorId_All on SVC::CreateThread | Kloen | 1 | -0/+1 | |
2016-01-14 | HLE/SVC: Implement UnmapMemoryBlock. | Subv | 1 | -5/+27 | |
This implementation will need to be (almost completely) changed when we implement multiprocess support. | |||||
2015-12-25 | svc: Remove superfluous printf argument | Lioncash | 1 | -1/+1 | |
2015-12-13 | svc: Fix compilation with LOG_TRACE enabled | Lioncash | 1 | -1/+1 | |
2015-12-01 | Kernel: Implement svcGetSystemInfo | Yuri Kunde Schlesner | 1 | -1/+46 | |
This makes smealum/ctrulib@b96dd51d3349961189d4ab1bc2a5c45deff21c09 work with Citra. | |||||
2015-08-30 | SVC: Advance time when calling GetSystemTick to escape busy-wait loops | Yuri Kunde Schlesner | 1 | -1/+4 | |
Cubic Ninja waited for the frame to end by spinning on a loop calling GetSystemTick while doing nothing else. Since GetSystemTick doesn't cause a reschedule (which advances time), this meant that very little emulated time would pass inside that loop, causing the game to spend most of the frame burning away CPU. | |||||
2015-08-25 | Integrate the MicroProfile profiling library | Yuri Kunde Schlesner | 1 | -0/+4 | |
This brings goodies such as a configurable user interface and multi-threaded timeline view. | |||||
2015-08-16 | Kernel: Implement svcGetProcessInfo in a basic way | Yuri Kunde Schlesner | 1 | -1/+47 | |
This also adds some basic memory usage accounting. These two types are used by Super Smash Bros. during startup. | |||||
2015-08-16 | Kernel: Add more infrastructure to support different memory layouts | Yuri Kunde Schlesner | 1 | -1/+1 | |
This adds some structures necessary to support multiple memory regions in the future. It also adds support for different system memory types and the new linear heap mapping at 0x30000000. | |||||
2015-08-16 | Move core/mem_map.{cpp,h} => core/hle/kernel/memory.{cpp,h} | Yuri Kunde Schlesner | 1 | -1/+1 | |
2015-08-16 | Kernel: Properly implement ControlMemory FREE and COMMIT | Yuri Kunde Schlesner | 1 | -13/+95 | |
2015-07-21 | dyncom: Pass SVC immediates directly. | Lioncash | 1 | -4/+3 | |
Previously it would just re-read the already decoded instruction and extract the immediate value. | |||||
2015-07-17 | Kernel/SVC: Implemented svcQueryProcessMemory | Subv | 1 | -6/+16 | |
2015-07-17 | Kernel/SVC: Implemented svcQueryMemory. | Subv | 1 | -2/+14 | |
2015-07-17 | Core\HLE : Fix Warning | zawata | 1 | -2/+2 | |
"signed/unsigned mismatch" | |||||
2015-06-17 | kernel: Fix svcWaitSynch to always acquire requested wait objects. | bunnei | 1 | -9/+17 | |
2015-05-29 | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | 1 | -2/+2 | |
2015-05-25 | Core/SVC: Map the shared memory created in CreateMemoryBlock to the specified address. | Subv | 1 | -0/+2 | |
This SharedMemory can be passed to service functions (Which should map the memory into their own address space). | |||||
2015-05-21 | Kernel: Move reschedules from SVCs to actual mechanisms that reschedule. | bunnei | 1 | -20/+2 | |
2015-05-17 | Implement svcBreak | archshift | 1 | -1/+13 | |
2015-05-15 | Core/ResourceLimits: Implemented the basic structure of ResourceLimits. | Subv | 1 | -11/+38 | |
Implemented svcs GetResourceLimit, GetResourceLimitCurrentValues and GetResourceLimitLimitValues. Note that the resource limits do not currently keep track of used objects, since we have no way to distinguish between an object created by the application, and an object created by some HLE module once we're inside Kernel::T::Create. | |||||
2015-05-15 | Memmap: Re-organize memory function in two files | Yuri Kunde Schlesner | 1 | -1/+1 | |
memory.cpp/h contains definitions related to acessing memory and configuring the address space mem_map.cpp/h contains higher-level definitions related to configuring the address space accoording to the kernel and allocating memory. | |||||
2015-05-12 | fixup! | Subv | 1 | -9/+9 | |
2015-05-11 | Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThread | Subv | 1 | -2/+31 | |
2015-05-11 | Kernel: Capture SharedMemory attributes at creation, not when mapping | Yuri Kunde Schlesner | 1 | -1/+3 | |
2015-05-07 | Fix printf format warning | Yuri Kunde Schlesner | 1 | -1/+1 | |
2015-05-07 | Common: Remove common.h | Yuri Kunde Schlesner | 1 | -0/+1 | |
2015-05-06 | HLE: Clean up SVC dispatch mechanism | Yuri Kunde Schlesner | 1 | -3/+34 | |
2015-04-10 | SVC: Assert on unsupported CreateThread processor ID. | bunnei | 1 | -3/+9 | |
2015-04-10 | SVC: Update various SVCs to cause a reschedule. | bunnei | 1 | -2/+22 | |
- CreateMutex/ReleaseMutex/ReleaseSemaphore/SetTimer/CancelTimer/ArbitrateAddress | |||||
2015-04-10 | Thread: Implement priority boost for starved threads. | bunnei | 1 | -6/+16 | |
SVC: Return correct error code on invalid CreateThread processor ID. SVC: Assert when creating a thread with an invalid userland priority. | |||||
2015-04-10 | SVC: Reschedule on svcCreateThread. | bunnei | 1 | -0/+2 | |
2015-03-16 | arm_interface: Get rid of GetTicks. | Lioncash | 1 | -2/+3 | |
Removes a TODO. | |||||
2015-02-11 | Asserts: break/crash program, fit to style guide; log.h->assert.h | archshift | 1 | -1/+1 | |
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft. | |||||
2015-02-10 | Scheduler refactor Pt. 1 | Kevin Hartman | 1 | -5/+9 | |
* Simplifies scheduling logic, specifically regarding thread status. It should be much clearer which statuses are valid for a thread at any given point in the system. * Removes dead code from thread.cpp. * Moves the implementation of resetting a ThreadContext to the corresponding core's implementation. Other changes: * Fixed comments in arm interfaces. * Updated comments in thread.cpp * Removed confusing, useless, functions like MakeReady() and ChangeStatus() from thread.cpp. * Removed stack_size from Thread. In the CTR kernel, the thread's stack would be allocated before thread creation. | |||||
2015-02-10 | WaitSynch: Always reschedule (verified behavior on hw). | bunnei | 1 | -4/+4 | |
2015-02-02 | Kernel: Stop creating useless Handles during object creation | Yuri Kunde Schlesner | 1 | -7/+11 | |
They're finally unnecessary, and will stop cluttering the application's handle table. | |||||
2015-02-02 | SVC: Enable CloseHandle, clean up DuplicateHandle | Yuri Kunde Schlesner | 1 | -9/+5 | |
2015-02-02 | Thread: Modernize two functions that slipped through previous rebases | Yuri Kunde Schlesner | 1 | -3/+3 | |
2015-02-02 | Make Port/Service registration and querying more HW-accurate | Yuri Kunde Schlesner | 1 | -4/+16 | |
2015-01-30 | SVC: Use CASCADE_RESULT in SVC handlers | Yuri Kunde Schlesner | 1 | -73/+32 | |
2015-01-30 | Remove result.h InvalidHandle | Yuri Kunde Schlesner | 1 | -15/+16 | |
It was only being used in two places, where it was replaced by a local constant. | |||||
2015-01-30 | SVC: Change return type of handlers to ResultCode | Yuri Kunde Schlesner | 1 | -90/+90 | |
2015-01-30 | Kernel: Convert Event to not use Handles | Yuri Kunde Schlesner | 1 | -11/+29 | |
2015-01-30 | Kernel: Convert Timer to (mostly) not use Handles | Yuri Kunde Schlesner | 1 | -7/+40 | |
2015-01-30 | Kernel: Convert Mutex to not use Handles | Yuri Kunde Schlesner | 1 | -5/+19 | |
2015-01-30 | Kernel: Convert AddressArbiter to not use Handles | Yuri Kunde Schlesner | 1 | -6/+24 | |
2015-01-30 | Kernel: Convert Semaphore to not use Handles | Yuri Kunde Schlesner | 1 | -6/+27 | |
2015-01-30 | Kernel: Convert SharedMemory to not use Handles | Yuri Kunde Schlesner | 1 | -15/+29 | |
2015-01-27 | SVC: Update the SVC function table | purpasmart96 | 1 | -7/+7 | |
2015-01-22 | WaitSynchronization: Added a result code for invalid result, fixed bug. | bunnei | 1 | -3/+9 | |
2015-01-22 | Thread: Fix WaitSynchronization1 to not set register 1 on thread wakeup. | bunnei | 1 | -3/+3 | |
2015-01-22 | Kernel: Changed "ShouldWait" to return bool and "Acquire" to return void. | bunnei | 1 | -7/+3 | |
2015-01-22 | WaitObject: Renamed "Wait" to "ShouldWait", made "ShouldWait" and "Acquire" pure virtual. | bunnei | 1 | -2/+2 | |
2015-01-22 | Kernel: Reschedule on SignalEvent and SendSyncRequest, fix some bugs. | bunnei | 1 | -0/+1 | |
2015-01-22 | Kernel: Moved Wait and Acquire to WaitObject, added way to retrieve a WaitObject safely. | bunnei | 1 | -2/+2 | |
2015-01-22 | SVC: Removed a Sleep that made no sense | bunnei | 1 | -6/+1 | |
- Would deadlock the calling thread - Code would never get hit anyways | |||||
2015-01-22 | AddressArbiter: Changed to Kernel::Object, big cleanup, removed code that made no sense. | bunnei | 1 | -3/+3 | |
2015-01-22 | Kernel: Get rid of WaitTypes and simplify lots of code, removing hacks. | bunnei | 1 | -10/+20 | |
2015-01-22 | WaitSynchronizationN: Improved comments | bunnei | 1 | -7/+12 | |
2015-01-22 | WaitSynchronizationN: Refactor to fix several bugs | bunnei | 1 | -25/+27 | |
- Separate wait checking from waiting the current thread - Resume thread when wait_all=true only if all objects are available at once - Set output to correct wait object index when there are duplicate handles | |||||
2015-01-22 | Kernel: Separate WaitSynchronization into Wait and Acquire methods. | bunnei | 1 | -4/+5 | |
2015-01-22 | WaitSynchronizationN: Handle case where handles=nullptr. | bunnei | 1 | -0/+4 | |
2015-01-22 | WaitSynchronizationN: Handle case where handle_count is invalid. | bunnei | 1 | -3/+7 | |
2015-01-22 | WaitSynchronizationN: Handle case where handle_count=0. | bunnei | 1 | -19/+29 | |
2015-01-22 | WaitSynchronizationN: Implement return values | bunnei | 1 | -27/+50 | |
2015-01-13 | AddrArbiter: Implement arbitration types 3 and 4. | Subv | 1 | -1/+1 | |
2015-01-11 | SVC: Wake up the thread after the delay in WaitSync1 | Subv | 1 | -3/+2 | |
2015-01-10 | Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance. | archshift | 1 | -1/+0 | |
2015-01-09 | Kernel: Start using boost::intrusive_ptr for lifetime management | Yuri Kunde Schlesner | 1 | -13/+18 | |
2015-01-09 | Thread: Reduce use of Handles and move some funcs to inside the class. | Yuri Kunde Schlesner | 1 | -20/+31 | |
2015-01-09 | Move ThreadContext to core/core.h and deal with the fallout | Yuri Kunde Schlesner | 1 | -0/+1 | |
2015-01-09 | SVC: Implemented the Timer service calls. | Subv | 1 | -4/+32 | |
2015-01-09 | SVC: Fixed SleepThread. | Subv | 1 | -0/+4 | |
It will now properly wait the specified number of nanoseconds and then wake up the thread. | |||||
2015-01-07 | Warn if a new thread is intended to be run on the system CPU core until we implement correct scheduling for such a thread. | Kevin Hartman | 1 | -0/+5 | |
2014-12-31 | SOC_U: Preliminary implementation of sockets. | Subv | 1 | -1/+13 | |
Stubbed CreateMemoryBlock Using Berkeley sockets, and Winsock2.2 on Windows. So far ftpony creates the socket and accepts incoming connections SOC_U: Renamed functions to maintain consistency Also prevents possible scope errors / conflicts with the actual Berkeley socket functions SOCU: Close all the opened sockets when cleaning up SOCU | |||||
2014-12-28 | Kernel: New handle manager | Yuri Kunde Schlesner | 1 | -19/+9 | |
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. | |||||
2014-12-28 | Rename ObjectPool to HandleTable | Yuri Kunde Schlesner | 1 | -5/+5 | |
2014-12-21 | License change | purpasmart96 | 1 | -1/+1 | |
2014-12-21 | Thread: Wait current thread on svc_SleepThread | bunnei | 1 | -1/+2 | |
- Removed unused VBLANK sleep mode - Added error log for bad context switch - Renamed VerifyWait to CheckWaitType to be more clear | |||||
2014-12-15 | Remove SyncRequest from K::Object and create a new K::Session type | Yuri Kunde Schlesner | 1 | -7/+4 | |
This is a first step at fixing the conceptual insanity that is our handling of service and IPC calls. For now, interfaces still directly derived from Session because we don't have the infrastructure to do it properly. (That is, Processes and scheduling them.) | |||||
2014-12-13 | Kernel/Semaphores: Fixed build | Subv | 1 | -2/+2 | |
2014-12-13 | SVC: Implemented ReleaseSemaphore. | Subv | 1 | -3/+10 | |
This behavior was tested on hardware, however i'm still not sure what use the "initial_count" parameter has | |||||
2014-12-13 | SVC: Implemented svcCreateSemaphore | Subv | 1 | -1/+10 | |
ToDo: Implement svcReleaseSemaphore * Some testing against hardware needed | |||||
2014-12-13 | Convert old logging calls to new logging macros | Yuri Kunde Schlesner | 1 | -27/+27 | |
2014-12-12 | MemMap: Renamed "GSP" heap to "linear", as this is not specific to GSP. | bunnei | 1 | -1/+1 | |
- Linear simply indicates that the mapped physical address is always MappedVAddr+0x0C000000, thus this memory can be used for hardware devices' DMA (such as the GPU). | |||||
2014-12-04 | SVC: Implemented GetThreadId. | Subv | 1 | -4/+5 | |
For now threads are using their Handle value as their Id, it should not really cause any problems because Handle values are unique in Citra, but it should be changed. I left a ToDo there because this is not correct behavior as per hardware. | |||||
2014-11-26 | SVC: Add debug log to ArbitrateAddress. | bunnei | 1 | -0/+2 | |
2014-11-26 | SVC: SleepThread should yield to the next ready thread. | bunnei | 1 | -0/+3 | |
2014-11-24 | HLE: Revamp error handling throrough the HLE code | Yuri Kunde Schlesner | 1 | -31/+37 | |
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. | |||||
2014-11-19 | Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated | Emmanuel Gil Peyrot | 1 | -14/+14 | |
2014-11-19 | Kernel:Add missing permissions in shared memory & svc | purpasmart96 | 1 | -0/+4 | |
2014-11-18 | core: Mark some hle functions as static | Lioncash | 1 | -26/+26 | |
These functions are not referred to by their linkage name outside of the translation unit, so they can be marked as static. | |||||
2014-10-30 | Fix some warnings | Sean | 1 | -3/+3 | |
2014-09-09 | core: Prune redundant includes | archshift | 1 | -3/+0 | |
2014-09-09 | Added string_util to common, small changes in loader.cpp | archshift | 1 | -1/+1 | |
2014-08-19 | SVC: Added support for svc_GetSystemTick. | bunnei | 1 | -1/+6 | |
Changed HLE function return methods to be static inline functions. | |||||
2014-08-18 | Core: Alter the kernel string functions to use std::string instead of const char*. | Lioncash | 1 | -5/+5 | |
Most functions already operate on std::strings. This also removes the need to manually null terminate thread names. | |||||
2014-08-17 | Core: Fix a formatting error in svc.cpp | Lioncash | 1 | -3/+2 | |
entry_point would not be added to the string. Also used StringFromFormat so that the buffer is unnecessary. | |||||
2014-08-08 | SVC: Fixed typo with MapMemoryBlock DEBUG_LOG call. | bunnei | 1 | -1/+1 | |
2014-08-06 | SVC: Removed ArbitrateAddress log message that spams to much. | bunnei | 1 | -2/+0 | |
2014-07-09 | Kernel: Added preliminary support for address arbiters. | bunnei | 1 | -8/+10 | |
AddressArbiter: Added documentation comment, fixed whitespace issue. AddressArbiter: Fixed incorrect comment, reordered if-statement to be more clear. SVC: Removed trailing whitespace. | |||||
2014-07-05 | SharedMemory: Updated MapSharedMemory to use an enum for permissions. | bunnei | 1 | -10/+9 | |
- Also added some safety checks to MapSharedMemory. | |||||
2014-07-05 | GSP: Fixed to use real shared memory object, various cleanups. | bunnei | 1 | -5/+6 | |
- Previously, used a hard-coded shared memory handle of 0x10002000 (as used by libctru homebrew) GSP: Added name for shared memory. GSP: Cleaned up assertion message. | |||||
2014-06-13 | SVC: Renamed all function wrapper templates to Wrap, moved to HLE namespace. | bunnei | 1 | -126/+126 | |
2014-06-13 | SVC: Cleaned up function wrappers to pass in correct argument types. | bunnei | 1 | -148/+138 | |
2014-06-13 | SVC: Moved declaration of "wait" variable in SendSyncRequest for improved readability. | bunnei | 1 | -1/+1 | |
2014-06-13 | HLE: Updated all uses of NULL to nullptr (to be C++11 compliant) | bunnei | 1 | -107/+107 | |
2014-06-13 | HLE: Updated various handle debug assertions to be more clear. | bunnei | 1 | -6/+6 | |
2014-06-13 | Kernel: Added real support for thread and event blocking | bunnei | 1 | -28/+31 | |
- SVC: Added ExitThread support - SVC: Added SignalEvent support - Thread: Added WAITTYPE_EVENT for waiting threads for event signals - Thread: Added support for blocking on other threads to finish (e.g. Thread::Join) - Thread: Added debug function for printing current threads ready for execution - Thread: Removed hack/broken thread ready state code from Kernel::Reschedule - Mutex: Moved WaitCurrentThread from SVC to Mutex::WaitSynchronization - Event: Added support for blocking threads on event signalling Kernel: Added missing algorithm #include for use of std::find on non-Windows platforms. | |||||
2014-06-02 | svc: updated WaitSynchronizationN to properly use first pointer argument | bunnei | 1 | -3/+3 | |
2014-06-02 | svc: changed DuplicateHandle log message from "error" to "debug" | bunnei | 1 | -1/+1 | |
2014-06-02 | svc: added GetThreadPriority and SetThreadPriority, added (incomplete) DuplicateHandle support | bunnei | 1 | -3/+26 | |
2014-06-02 | kernel: changed main thread priority to default, updated Kernel::Reschedule to use PrepareReschedule | bunnei | 1 | -2/+7 | |
2014-06-02 | svc: cleaned up function_wrappers, updated various SVCs to make use of pointer arguments | bunnei | 1 | -16/+18 | |
2014-06-01 | svc: updated waitSychronization to not overwrite handle on return, added stub for SleepThread (does nothing) | bunnei | 1 | -2/+21 | |
2014-05-30 | hle: cleaned up log messages | bunnei | 1 | -27/+28 | |
2014-05-30 | svc: updated OutputDebugString to use OS_LOG | bunnei | 1 | -1/+1 | |
2014-05-30 | svc: changed unimplemented SVC log messages from "debug" messages to "error" messages | bunnei | 1 | -8/+8 | |
2014-05-30 | svc: added svcClearEvent, stubbed function for svcArbitrateAddress, and various fixes | bunnei | 1 | -22/+32 | |
- force kernel reschedule after svcWaitSynchronization - fixed some bugs with passing in pointer arguments - cleaned up some comments and log messages | |||||
2014-05-28 | svc: implemented WaitSynchronization1, WaitSynchronizationN, and CreateEvent | bunnei | 1 | -14/+54 | |
2014-05-27 | kernel: updated SyncRequest to take boolean thread wait result as a parameter | bunnei | 1 | -2/+9 | |
2014-05-27 | svc: added some assertions | bunnei | 1 | -6/+4 | |
2014-05-27 | svc: changed SendSyncRequest to use Kernel::Object SyncRequest (instead of just service Interface class) | bunnei | 1 | -2/+2 | |
2014-05-27 | svc: added stub for DuplicateHandle SVC call | bunnei | 1 | -1/+8 | |
2014-05-23 | svc: added a check to ensure that a service was implemented before attempting to connect to its port | bunnei | 1 | -1/+5 | |
2014-05-23 | thread: renamed "WaitCurThread" to "WaitCurrentThread", removed unused "reason" argument | bunnei | 1 | -2/+2 | |
2014-05-23 | thread: removed unused SwitchContext/Reschedule reason field, added missing arg parameter to SVC CreateThread | bunnei | 1 | -8/+5 | |
2014-05-22 | svc: added Kernel::Reschedule to svc WaitSynchronization1, updated log messages to include newly created handles | bunnei | 1 | -4/+7 | |
2014-05-21 | svc: enabled use of newly created kernel thread handle | bunnei | 1 | -5/+5 | |
2014-05-21 | mutex: refactored the interface to code to return a Mutex* handle | bunnei | 1 | -1/+1 | |
2014-05-21 | mutex: initial commit of HLE module | bunnei | 1 | -4/+5 | |
2014-05-21 | svc: added some comments | bunnei | 1 | -0/+7 | |
2014-05-21 | thread: moved threading calls to the Kernel namespace | bunnei | 1 | -2/+2 | |
2014-05-21 | renamed "syscall" module to "svc" (more accurate naming) | bunnei | 1 | -5/+7 | |
2014-05-19 | renamed "session" to "handle" | bunnei | 1 | -3/+3 | |
2014-05-19 | fix warning | bunnei | 1 | -1/+1 | |
2014-05-19 | renamed "UID" to "Handle" where appropriate | bunnei | 1 | -2/+2 | |
2014-05-18 | - added stub for CreateEvent | bunnei | 1 | -8/+22 | |
- changed some stubbed SVCs to return unique handle names for debugging purposes | |||||
2014-05-18 | added stubbed function for WaitSynchronizationN | bunnei | 1 | -3/+13 | |
2014-05-17 | cleanups to SVC CreateThread | bunnei | 1 | -8/+15 | |
2014-05-16 | - added SVC stubs for QueryMemory and GetThreadId | bunnei | 1 | -2/+14 | |
- added SVC structs MemoryInfo and PageInfo | |||||
2014-05-16 | - added ThreadContext struct | bunnei | 1 | -8/+12 | |
- cleaned up CreateThread svc | |||||
2014-05-14 | added CreateThread, CreateMutex, and ReleaseMutex SVC stubs (just parameter decoding for now) | bunnei | 1 | -6/+37 | |
2014-05-08 | removed unnecessary log message | bunnei | 1 | -1/+1 | |
2014-05-07 | - added debug logging to syscall.cpp | bunnei | 1 | -134/+162 | |
- added stubbed HLE syscall functions for svc_GetResourceLimit and svc_GetResourceLimitCurrentValues | |||||
2014-05-02 | - added some function wrappers for HLE | bunnei | 1 | -2/+17 | |
- added stub for SVC CreateAddressArbiter - added OutputDebugString SVC | |||||
2014-04-25 | fixed bug where svc_ControlMemory was not properly getting passed in parameters | bunnei | 1 | -2/+2 | |
2014-04-25 | - added preliminary support for svc_MapMemoryBlock | bunnei | 1 | -4/+34 | |
- added shared memory region - moarrrr cleanups to memory_map | |||||
2014-04-18 | renamed hw_lcd module to just lcd | bunnei | 1 | -2/+0 | |
2014-04-18 | added GSP heap memory allocation | bunnei | 1 | -1/+25 | |
2014-04-17 | - fixed tabs in function_wrappers.h | bunnei | 1 | -126/+138 | |
- fixed log message wording in hle.cpp - added syscall stubs for CloseHandle and WaitSynchronization1 | |||||
2014-04-13 | - added HLE to connect to "srv:" service | bunnei | 1 | -128/+138 | |
- added a manager for keeping track of services/ports - added a memory mapped region for memory accessed by HLE - added HLE for GetThreadCommandBuffer function | |||||
2014-04-12 | - renamed hle_syscall to just syscall | bunnei | 1 | -62/+64 | |
- added service.h as an initial service interface | |||||
2014-04-11 | added remaining known syscall functions to Syscall_Table | bunnei | 1 | -0/+80 | |
2014-04-11 | base code to call a syscall from ARM11 appcore | bunnei | 1 | -4/+51 | |
2014-04-11 | changed some naming/misc cleanups | bunnei | 1 | -2/+2 | |
2014-04-11 | - removed syscall classes (will just use HLEFunction) | bunnei | 1 | -4/+6 | |
- added hle.cpp and module registration - removed unused code | |||||
2014-04-11 | added initial modules for setting up SysCall HLE | bunnei | 1 | -0/+22 | |