Fernando Sahmkow
c8e62451c6
Core: Correct rebase.
6 years ago
Fernando Sahmkow
8c30c20863
Scheduler: Release old thread fiber before trying to switch to the next thread fiber.
6 years ago
Fernando Sahmkow
4621b4b37a
Mutex: Correct Result writting to clear exclusivity.
6 years ago
Fernando Sahmkow
7270076127
SVC: Correct svcWaitForAddress and svcSignalToAddress.
6 years ago
Fernando Sahmkow
a3f7acb149
Scheduler: Correct Select Threads Step 2.
6 years ago
Fernando Sahmkow
47c01e68da
Kernel: Corrections to Scheduling.
6 years ago
Fernando Sahmkow
5e26654c5a
Kernel: Correct Signal on Thread Death and Setup Sync Objects on Thread for Debugging
6 years ago
Fernando Sahmkow
da260b9d2e
Core: Correct HLE Event Callbacks and other issues.
6 years ago
Fernando Sahmkow
04cb816f7a
Process: Protect TLS region and Modules.
6 years ago
Fernando Sahmkow
cd3d1798d8
General: Add Asserts
6 years ago
Fernando Sahmkow
78eeea9f17
General: Add better safety for JIT use.
6 years ago
Fernando Sahmkow
7932cf9617
SVC: Correct races on physical core switching.
6 years ago
Fernando Sahmkow
9140f5d1f3
SVC: Add locks to the memory management.
6 years ago
Fernando Sahmkow
6605f8acfa
SVC: Correct WaitSynchronization, WaitProcessWideKey, SignalProcessWideKey.
6 years ago
Fernando Sahmkow
940422fd96
SVC: Cleanup old methods.
6 years ago
Fernando Sahmkow
64fe82af2e
CPU_Manager: Reconfigre guest threads for dynamrmic downsides
6 years ago
Fernando Sahmkow
85ca7b2bdb
SVC: Correct SendSyncRequest.
6 years ago
Fernando Sahmkow
5c70bfcef7
SVC: Correct ArbitrateUnlock
6 years ago
Fernando Sahmkow
8c9d258e66
SVC: Correct SignalEvent, ClearEvent, ResetSignal, WaitSynchronization, CancelSynchronization, ArbitrateLock
6 years ago
Fernando Sahmkow
71e008a336
SVC: Remove global HLE Lock.
6 years ago
Fernando Sahmkow
b2fea85499
SVC: Correct GetThreadPriority, SetThreadPriority, GetThreadCoreMask, SetThreadCoreMask, GetCurrentProcessorNumber
6 years ago
Fernando Sahmkow
451344e9ae
SVC: Correct CreateThread, StartThread, ExitThread, SleepThread.
6 years ago
Fernando Sahmkow
7ee76003ad
General: Recover Prometheus project from harddrive failure
This commit: Implements CPU Interrupts, Replaces Cycle Timing for Host
Timing, Reworks the Kernel's Scheduler, Introduce Idle State and
Suspended State, Recreates the bootmanager, Initializes Multicore
system.
6 years ago
David Marcec
442900456e
memory_manager: Remove useless assertion
num_pages is an std::size_t. It will always be >= 0
6 years ago
David Marcec
df001e73c2
Mark invalid IPC buffers as ASSERT_OR_EXECUTE_MSG
Previously if applications would send faulty buffers(example homebrew) it would lead to us returning uninitalized data. Switching from ASSERT_MSG to ASSERT_OR_EXECUTE_MSG allows us to have a fail safe to prevent crashes but also continue execution without introducing undefined behavior
6 years ago
MerryMage
23d63c30e1
memory_manager: Explicitly specifcy std::min<size_t>
6 years ago
David Marcec
97ad3cd3ee
kernel: Account for system resource size for memory usage
GetTotalPhysicalMemoryAvailableWithoutSystemResource & GetTotalPhysicalMemoryUsedWithoutSystemResource seem to subtract the resource size from the usage.
6 years ago
David Marcec
07db67b406
Downgrade "handle not signaled" error to trace
clogs logs quite a bit
6 years ago
David Marcec
55b534c5a0
kernel: ResourceLimit::Reserve remove useless while loop
Timeout is a u64, it will always be >= 0
6 years ago
Lioncash
12b81f2581
kernel/memory: Remove #pragma once within cpp file
This isn't necessary in a cpp file and will cause warnings on clang.
6 years ago
Lioncash
0bf0d27552
kernel/memory: Remove unused includes
Prevents header churn and needing to recompile these files if these
headers are ever changed in the future.
6 years ago
Lioncash
0bb99454ed
kernel/memory: Remove unused variables in memory_block_manager
Prevents unused variable warnings.
6 years ago
Lioncash
42d43335c9
kernel/memory: Make use of std::array consistently in address_space_info
This allows tuning standard library implementations to enable or disable
range checks at runtime, which is nicer for debugging.
6 years ago
Lioncash
e09098b981
kernel/memory: Resolve -Wshadow warnings
Prevents variable name clashing.
6 years ago
Lioncash
a93929b23a
kernel/memory: Amend potential encoding warnings
While èis generally representable in some language encodings, in some
it isn't and will result in compilation warnings occurring. To remain
friendly with other language's codepages on Windows, we normalize it to
an ASCII e.
6 years ago
Lioncash
ccfac6d992
hle_ipc: Eliminate core memory globals
We can just pass the required instances into the constructor of the
request, eliminating all usages of the global system accessor.
6 years ago
Lioncash
918b439e26
readable_event: Remove unnecessary semicolon in Signal()
Resolves a -Wextra-semi warning.
While we're at it, we can invert the branch to form a guard clause,
unindenting all of the contained code.
6 years ago
David Marcec
4f69eb7061
kernel: Don't fail silently
6 years ago
David Marcec
45ece975bf
kernel: Bad GetInfo ids should not be marked as stubs
As we currently match hardware and don't return a successful result, these should be marked as errors instead of warnings and as stubs.
6 years ago
Lioncash
dca9c90af3
physical_core: Make use of std::make_unique instead of std::make_shared in ctor
We can also allow unicorn to be constructed in 32-bit mode or 64-bit
mode to satisfy the need for both interpreter instances.
Allows this code to compile successfully of non x86-64 architectures.
6 years ago
Lioncash
9a5a6ebe0a
shared_memory: Amend doxygen reference
Amends the parameter to match the documentation reference.
Resolves a -Wdocumentation warning with clang.
6 years ago
Lioncash
224d3c6b9d
svc: Re-add MapProcessCodeMemory/UnmapProcessCodeMemory
These were lost in the re-implementation of the virtual memory manager.
6 years ago
Lioncash
2fc4351547
svc: Remove unused variable
Since the VMM refactor, this is no longer used or needed.
6 years ago
Lioncash
a881161d3c
page_table: Remove unused captures
Any time the lambda function is called, the permission being used in the
capture would be passed in as an argument to the lambda, so the capture
is unnecessary.
6 years ago
bunnei
da893629a0
kernel: memory: Improve implementation of device shared memory. ( #3707 )
* kernel: memory: Improve implementation of device shared memory.
* fixup! kernel: memory: Improve implementation of device shared memory.
* fixup! kernel: memory: Improve implementation of device shared memory.
6 years ago
MerryMage
5451c81b74
thread: FPCR.FZ is likely not 1
6 years ago
Lioncash
ac3ff8c9ba
memory/slab_heap: Make use of static_cast over reinterpret_cast
Casting from void* with static_cast is permitted by the standard, so we
can just make use of that instead.
6 years ago
bunnei
4cdbd44f51
core: hle: Address various feedback & code cleanup.
- Should be no functional changes.
6 years ago
bunnei
bdf7501e7b
memory: Add copyright notice for Atmosphere where applicable.
6 years ago
bunnei
0cf0195874
kernel: Remove old VMManager class.
6 years ago