Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 2018-09-15 | 1 | -3/+3 |
| | |||||
* | kernel: Eliminate kernel global state | Lioncash | 2018-08-29 | 1 | -29/+11 |
| | | | | | | | | | | | | | | | | | | | | | | As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header. | ||||
* | kernel/process: Use accessors instead of class members for referencing segment array | Lioncash | 2018-08-03 | 1 | -3/+3 |
| | | | | | | | Using member variables for referencing the segments array increases the size of the class in memory for little benefit. The same behavior can be achieved through the use of accessors that just return the relevant segment. | ||||
* | core/memory: Get rid of 3DS leftovers | Lioncash | 2018-08-03 | 1 | -76/+2 |
| | | | | Removes leftover code from citra that isn't needed. | ||||
* | Rename logging macro back to LOG_* | James Rowe | 2018-07-03 | 1 | -4/+4 |
| | |||||
* | general: Make formatting of logged hex values more straightforward | Lioncash | 2018-05-02 | 1 | -1/+1 |
| | | | | | | This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on). | ||||
* | core: Replace usages of LOG_GENERIC with new fmt-capable equivalents | Lioncash | 2018-04-27 | 1 | -1/+1 |
| | |||||
* | kernel: Migrate logging macros to fmt-compatible ones | Lioncash | 2018-04-26 | 1 | -4/+4 |
| | |||||
* | memory: Fix stack region. | bunnei | 2018-03-31 | 1 | -2/+3 |
| | |||||
* | process: MirrorMemory should use MemoryState::Mapped. | bunnei | 2018-03-17 | 1 | -1/+1 |
| | |||||
* | process: Unmap previously allocated heap. | bunnei | 2018-03-16 | 1 | -1/+3 |
| | |||||
* | kernel: Move stack region outside of application heap. | bunnei | 2018-03-16 | 1 | -3/+2 |
| | |||||
* | process: Fix stack memory state. | bunnei | 2018-03-16 | 1 | -2/+4 |
| | |||||
* | MemoryState: Add additional memory states and improve naming. | bunnei | 2018-03-16 | 1 | -3/+3 |
| | |||||
* | core: Move process creation out of global state. | bunnei | 2018-03-14 | 1 | -3/+2 |
| | |||||
* | Kernel: Store the program id in the Process class instead of the CodeSet class. | Subv | 2018-03-02 | 1 | -5/+3 |
| | | | | There may be many CodeSets per Process, so it's wasteful and overcomplicated to store the program id in each of them. | ||||
* | svc: Implement svcExitProcess. | bunnei | 2018-01-01 | 1 | -5/+27 |
| | |||||
* | svc: Implement svcUnmapMemory. | bunnei | 2017-12-31 | 1 | -0/+4 |
| | |||||
* | kernel: Various 64-bit fixes in memory/process/thread | bunnei | 2017-12-29 | 1 | -1/+1 |
| | |||||
* | process: Add method to mirror a memory region. | bunnei | 2017-12-29 | 1 | -0/+25 |
| | |||||
* | hle: Fix QueryMemory response for MemoryInfo. | bunnei | 2017-10-20 | 1 | -37/+5 |
| | |||||
* | Merge remote-tracking branch 'upstream/master' into nx | bunnei | 2017-10-10 | 1 | -1/+2 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # src/core/CMakeLists.txt # src/core/arm/dynarmic/arm_dynarmic.cpp # src/core/arm/dyncom/arm_dyncom.cpp # src/core/hle/kernel/process.cpp # src/core/hle/kernel/thread.cpp # src/core/hle/kernel/thread.h # src/core/hle/kernel/vm_manager.cpp # src/core/loader/3dsx.cpp # src/core/loader/elf.cpp # src/core/loader/ncch.cpp # src/core/memory.cpp # src/core/memory.h # src/core/memory_setup.h | ||||
| * | Kernel/Thread: Allow specifying which process a thread belongs to when creating it. | Subv | 2017-09-27 | 1 | -1/+1 |
| | | | | | | | | 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. | ||||
* | | loader: Various improvements for NSO/NRO loaders. | bunnei | 2017-10-10 | 1 | -3/+3 |
| | | |||||
* | | nso: Refactor and allocate .bss section. | bunnei | 2017-09-30 | 1 | -4/+5 |
| | | |||||
* | | process: Support loading multiple codesets. | bunnei | 2017-09-30 | 1 | -19/+20 |
|/ | |||||
* | Kernel: Add comment about the extended linear heap area | Yuri Kunde Schlesner | 2017-06-19 | 1 | -0/+2 |
| | |||||
* | Kernel: Centralize error definitions in errors.h | Yuri Kunde Schlesner | 2017-05-25 | 1 | -0/+1 |
| | |||||
* | Kernel: Map special regions according to ExHeader | Yuri Kunde Schlesner | 2017-05-10 | 1 | -4/+19 |
| | | | | | | | This replaces the hardcoded VRAM/DSP mappings with ones made based on the ExHeader ARM11 Kernel caps list. While this has no visible effect for most applications (since they use a standard set of mappings) it does improve support for system modules and n3DS exclusives. | ||||
* | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | 2016-09-21 | 1 | -1/+1 |
| | |||||
* | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 2016-09-21 | 1 | -3/+1 |
| | | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | ||||
* | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | 2016-09-19 | 1 | -8/+4 |
| | |||||
* | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 2016-09-18 | 1 | -25/+40 |
| | |||||
* | Kernel/SVC: Fixed the register order for svcCreateMemoryBlock. | Subv | 2016-05-13 | 1 | -1/+1 |
| | | | | R0 is used as the last parameter instead of R4. | ||||
* | Common: Remove Common::make_unique, use std::make_unique | MerryMage | 2016-04-05 | 1 | -1/+2 |
| | |||||
* | Memory: Do correct Phys->Virt address translation for non-APP linheap | Yuri Kunde Schlesner | 2016-03-06 | 1 | -2/+4 |
| | |||||
* | BitField: Make trivially copyable and remove assignment operator | MerryMage | 2016-02-12 | 1 | -1/+1 |
| | |||||
* | Kernel: Implement svcGetSystemInfo | Yuri Kunde Schlesner | 2015-12-01 | 1 | -0/+6 |
| | | | | | This makes smealum/ctrulib@b96dd51d3349961189d4ab1bc2a5c45deff21c09 work with Citra. | ||||
* | Kernel: Fix wrong linear heap base on titles using newer kernels | Yuri Kunde Schlesner | 2015-08-28 | 1 | -1/+1 |
| | | | | Typo which sneaked in through review on #1025 | ||||
* | Kernel: Fix assertion failure when ControlMemory is called with size=0 | Yuri Kunde Schlesner | 2015-08-27 | 1 | -0/+8 |
| | |||||
* | Kernel: Implement svcGetProcessInfo in a basic way | Yuri Kunde Schlesner | 2015-08-16 | 1 | -0/+10 |
| | | | | | This also adds some basic memory usage accounting. These two types are used by Super Smash Bros. during startup. | ||||
* | Kernel: Add more infrastructure to support different memory layouts | Yuri Kunde Schlesner | 2015-08-16 | 1 | -16/+28 |
| | | | | | | 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. | ||||
* | Move core/mem_map.{cpp,h} => core/hle/kernel/memory.{cpp,h} | Yuri Kunde Schlesner | 2015-08-16 | 1 | -1/+1 |
| | |||||
* | Process: Store kernel compatibility version during loading | Yuri Kunde Schlesner | 2015-08-16 | 1 | -3/+5 |
| | |||||
* | Kernel: Properly implement ControlMemory FREE and COMMIT | Yuri Kunde Schlesner | 2015-08-16 | 1 | -5/+115 |
| | |||||
* | VMManager: Make LogLayout log level configurable as a parameter | Yuri Kunde Schlesner | 2015-08-16 | 1 | -1/+1 |
| | |||||
* | Core: Properly configure address space when loading a binary | Yuri Kunde Schlesner | 2015-07-12 | 1 | -6/+32 |
| | | | | | | The code now properly configures the process image to match the loaded binary segments (code, rodata, data) instead of just blindly allocating a large chunk of dummy memory. | ||||
* | Merge pull request #772 from lioncash/warn | bunnei | 2015-05-18 | 1 | -3/+3 |
|\ | | | | | core/video_core: Fix a few warnings when compiling on MSVC. | ||||
| * | process: Get rid of warnings | Lioncash | 2015-05-14 | 1 | -3/+3 |
| | | | | | | | | Sign mismatches and "forcing value to bool" warnings. | ||||
* | | Core/ResourceLimits: Implemented the basic structure of ResourceLimits. | Subv | 2015-05-15 | 1 | -0/+1 |
| | | | | | | | | | | | | 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. | ||||
* | | Memmap: Re-organize memory function in two files | Yuri Kunde Schlesner | 2015-05-15 | 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. | ||||
* | Merge pull request #750 from Subv/process_svc | Yuri Kunde Schlesner | 2015-05-12 | 1 | -0/+2 |
|\ | | | | | Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThread | ||||
| * | Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThread | Subv | 2015-05-11 | 1 | -0/+2 |
| | | |||||
* | | Thread: Correctly set main thread initial stack position | Yuri Kunde Schlesner | 2015-05-11 | 1 | -1/+1 |
|/ | |||||
* | Common: Remove the BIT macro | Yuri Kunde Schlesner | 2015-05-09 | 1 | -2/+2 |
| | | | | | | | When the macro was introduced in 326ec51261299e48de97592631c02523da9c8118 it wasn't noticed that it conflicted in name with a heavily used macro inside of dyncom. This causes some compiler warnings. Since it's only lightly used, it was opted to simply remove the new macro. | ||||
* | Kernel: Remove unused g_main_thread variable | Yuri Kunde Schlesner | 2015-05-09 | 1 | -1/+1 |
| | |||||
* | Process: Rename StaticAddressMapping => AddressMapping | Yuri Kunde Schlesner | 2015-05-09 | 1 | -3/+3 |
| | |||||
* | Process: Use BitField to store process flags | Yuri Kunde Schlesner | 2015-05-09 | 1 | -10/+4 |
| | |||||
* | Process: Support parsing of exheader kernel caps | Yuri Kunde Schlesner | 2015-05-09 | 1 | -3/+70 |
| | |||||
* | Kernel: Introduce skeleton Process class to hold process data | Yuri Kunde Schlesner | 2015-05-09 | 1 | -0/+35 |