bunnei
5739484470
vm_manager: Use a more reasonable MAX_ADDRESS size.
8 years ago
bunnei
0d63f6dc66
svc: Remove unnecessary "svc" prefix to naming scheme.
8 years ago
bunnei
b328c577ef
hle: Move SVC code to kernel namespace.
8 years ago
bunnei
6a6de01d43
vm_manager: Stub out a bunch of interfaces used by svcGetInfo.
8 years ago
bunnei
4728cc141a
core/video_core: Fix a bunch of u64 -> u32 warnings.
8 years ago
bunnei
37d55a0317
svc: Implement svcExitProcess.
8 years ago
bunnei
16c66e09cc
svc: Implement svcLockMutex.
8 years ago
bunnei
fba61b93c7
kernel: Add ObjectAddressTable class.
8 years ago
bunnei
57d3544f96
thread: Keep track of the initially created handle.
This is kinda crufty, but we need it for now to update guest state variables.
8 years ago
bunnei
10022dc332
errors: Define missing kernel error codes.
8 years ago
bunnei
3af6ad6bb9
svc: Implement svcUnmapMemory.
8 years ago
bunnei
3fc608b040
thread: Main thread should set thread handle to reg 1.
8 years ago
bunnei
da4bd90980
thread: Remove THUMB mode flag.
8 years ago
bunnei
d8a3de102e
thread: Main thread should be ready by default, all others dormant.
8 years ago
bunnei
78531342a4
kernel: Various 64-bit fixes in memory/process/thread
8 years ago
bunnei
9d04a45a90
kernel: Fix implementation of ConvertSessionToDomain.
8 years ago
bunnei
8331a996d6
kernel: Add basic support for Domain object.
8 years ago
bunnei
8fdafee314
kernel: Add SyncObject primitive, use it for ClientSession.
8 years ago
bunnei
e74563e0d0
process: Add method to mirror a memory region.
8 years ago
bunnei
1edc9cc327
service: Return proper result code for IPC::CommandType::Close.
8 years ago
bunnei
714dd3da6d
hle: Use Switch formatted result codes.
8 years ago
bunnei
bf69f3d1eb
hle: Fix QueryMemory response for MemoryInfo.
8 years ago
bunnei
a636b779e7
hle_ipc: Only copy necessary fields for outgoing command buffer.
8 years ago
bunnei
f599769c3c
hle_ipc: Parse out buffer X/A/B/B descriptors from incoming command buffer.
8 years ago
bunnei
be299c7636
hle: Implement ConvertSessionToDomain, various cleanups.
8 years ago
bunnei
2ea8867549
hle: Initial implementation of NX service framework and IPC.
8 years ago
bunnei
e36ccd5ff1
loader: Various improvements for NSO/NRO loaders.
8 years ago
Subv
25a5ce9e75
Kernel/SharedMemory: Don't take over and unmap the source memory block when creating a shared memory, just reference it.
Also reference the right offset into the backing block for the requested address.
8 years ago
Subv
141da6b667
Kernel/Thread: Added a helper function to get a thread's command buffer VAddr.
8 years ago
bunnei
6d3b6e0041
nso: Refactor and allocate .bss section.
8 years ago
bunnei
39308848e3
process: Support loading multiple codesets.
8 years ago
bunnei
6cfc867d93
kernel: Various threading fixes to support 64-bit addressing.
8 years ago
bunnei
e5731e94d6
core: Various changes to support 64-bit addressing.
8 years ago
Huw Pascoe
da1c8d1522
Fixed type conversion ambiguity
8 years ago
Subv
a0054d695e
Kernel/Threads: When putting a thread to wait, specify a function to execute when it is awoken.
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.
8 years ago
Subv
2e78c05d91
Kernel/Thread: Allow specifying which process a thread belongs to when creating it.
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.
8 years ago
MerryMage
6b8ad273fc
memory: Add GetCurrentPageTable/SetCurrentPageTable
Don't expose Memory::current_page_table as a global.
8 years ago
Subv
9200465e55
Kernel/Threads: Don't clear the CPU instruction cache when performing a context switch from an idle thread into a thread in the same process.
We were unnecessarily clearing the cache when going from Process A -> Idle -> Process A, this caused extreme performance regressions.
9 years ago
Subv
71281c2114
Kernel/Memory: Changed GetPhysicalPointer so that it doesn't go through the current process' page table to obtain a pointer.
9 years ago
Subv
23ad87098d
Kernel/Memory: Switch the current page table when a new process is scheduled.
9 years ago
Subv
36100ec791
Kernel/Memory: Give each Process its own page table.
The loader is in charge of setting the newly created process's page table as the main one during the loading process.
9 years ago
Subv
9cf64ca2cf
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).
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.
9 years ago
Subv
733dfe220e
Kernel/Threads: Don't immediately switch to the new main thread when loading a new process.
This is necessary for loading multiple processes at the same time.
The main thread will be automatically scheduled when necessary once the scheduler runs.
8 years ago
Subv
f94bd67a0d
Warnings: Add UNREACHABLE macros to switches that contemplate all possible values.
8 years ago
Subv
4a8de6bb00
Kernel/SVC: Pass the current thread as a parameter to ClientSession::SendSyncRequest.
9 years ago
Subv
44f4737f99
Kernel/Sessions: Clean up the list of pending request threads of a session when the client endpoint is closed.
9 years ago
Subv
d7538409fb
Kernel/ServerSession: Keep track of which threads have issued sync requests.
9 years ago
Yuri Kunde Schlesner
afa851d0a4
Kernel: Implement AcceptSession SVC
9 years ago
Yuri Kunde Schlesner
1dd91e371b
Memory: Make PhysicalToVirtualAddress return a boost::optional
And fix a few places in the code to take advantage of that.
9 years ago
Yuri Kunde Schlesner
b3e13d653f
Kernel/IPC: Support translation of null handles
Missed this in my first implementation. Thanks to @wwylele for pointing
out that this was missing.
9 years ago