summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-08-03kernel/process: Use accessors instead of class members for referencing segment arrayLioncash1-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.
2018-08-03core/memory: Get rid of 3DS leftoversLioncash1-76/+2
Removes leftover code from citra that isn't needed.
2018-07-03Rename logging macro back to LOG_*James Rowe1-4/+4
2018-05-02general: Make formatting of logged hex values more straightforwardLioncash1-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).
2018-04-27core: Replace usages of LOG_GENERIC with new fmt-capable equivalentsLioncash1-1/+1
2018-04-26kernel: Migrate logging macros to fmt-compatible onesLioncash1-4/+4
2018-03-31memory: Fix stack region.bunnei1-2/+3
2018-03-17process: MirrorMemory should use MemoryState::Mapped.bunnei1-1/+1
2018-03-16process: Unmap previously allocated heap.bunnei1-1/+3
2018-03-16kernel: Move stack region outside of application heap.bunnei1-3/+2
2018-03-16process: Fix stack memory state.bunnei1-2/+4
2018-03-16MemoryState: Add additional memory states and improve naming.bunnei1-3/+3
2018-03-14core: Move process creation out of global state.bunnei1-3/+2
2018-03-02Kernel: Store the program id in the Process class instead of the CodeSet class.Subv1-5/+3
There may be many CodeSets per Process, so it's wasteful and overcomplicated to store the program id in each of them.
2018-01-01svc: Implement svcExitProcess.bunnei1-5/+27
2017-12-31svc: Implement svcUnmapMemory.bunnei1-0/+4
2017-12-29kernel: Various 64-bit fixes in memory/process/threadbunnei1-1/+1
2017-12-29process: Add method to mirror a memory region.bunnei1-0/+25
2017-10-20hle: Fix QueryMemory response for MemoryInfo.bunnei1-37/+5
2017-10-10loader: Various improvements for NSO/NRO loaders.bunnei1-3/+3
2017-09-30nso: Refactor and allocate .bss section.bunnei1-4/+5
2017-09-30process: Support loading multiple codesets.bunnei1-19/+20
2017-09-27Kernel/Thread: Allow specifying which process a thread belongs to when creating it.Subv1-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.
2017-06-19Kernel: Add comment about the extended linear heap areaYuri Kunde Schlesner1-0/+2
2017-05-25Kernel: Centralize error definitions in errors.hYuri Kunde Schlesner1-0/+1
2017-05-10Kernel: Map special regions according to ExHeaderYuri Kunde Schlesner1-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.
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-3/+1
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-19Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner1-8/+4
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-25/+40
2016-05-13Kernel/SVC: Fixed the register order for svcCreateMemoryBlock.Subv1-1/+1
R0 is used as the last parameter instead of R4.
2016-04-05Common: Remove Common::make_unique, use std::make_uniqueMerryMage1-1/+2
2016-03-06Memory: Do correct Phys->Virt address translation for non-APP linheapYuri Kunde Schlesner1-2/+4
2016-02-12BitField: Make trivially copyable and remove assignment operatorMerryMage1-1/+1
2015-12-01Kernel: Implement svcGetSystemInfoYuri Kunde Schlesner1-0/+6
This makes smealum/ctrulib@b96dd51d3349961189d4ab1bc2a5c45deff21c09 work with Citra.
2015-08-28Kernel: Fix wrong linear heap base on titles using newer kernelsYuri Kunde Schlesner1-1/+1
Typo which sneaked in through review on #1025
2015-08-27Kernel: Fix assertion failure when ControlMemory is called with size=0Yuri Kunde Schlesner1-0/+8
2015-08-16Kernel: Implement svcGetProcessInfo in a basic wayYuri Kunde Schlesner1-0/+10
This also adds some basic memory usage accounting. These two types are used by Super Smash Bros. during startup.
2015-08-16Kernel: Add more infrastructure to support different memory layoutsYuri Kunde Schlesner1-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.
2015-08-16Move core/mem_map.{cpp,h} => core/hle/kernel/memory.{cpp,h}Yuri Kunde Schlesner1-1/+1
2015-08-16Process: Store kernel compatibility version during loadingYuri Kunde Schlesner1-3/+5
2015-08-16Kernel: Properly implement ControlMemory FREE and COMMITYuri Kunde Schlesner1-5/+115
2015-08-16VMManager: Make LogLayout log level configurable as a parameterYuri Kunde Schlesner1-1/+1
2015-07-12Core: Properly configure address space when loading a binaryYuri Kunde Schlesner1-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.
2015-05-15Core/ResourceLimits: Implemented the basic structure of ResourceLimits.Subv1-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.
2015-05-15Memmap: Re-organize memory function in two filesYuri Kunde Schlesner1-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-14process: Get rid of warningsLioncash1-3/+3
Sign mismatches and "forcing value to bool" warnings.
2015-05-11Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThreadSubv1-0/+2
2015-05-11Thread: Correctly set main thread initial stack positionYuri Kunde Schlesner1-1/+1
2015-05-09Common: Remove the BIT macroYuri Kunde Schlesner1-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.
2015-05-09Kernel: Remove unused g_main_thread variableYuri Kunde Schlesner1-1/+1
2015-05-09Process: Rename StaticAddressMapping => AddressMappingYuri Kunde Schlesner1-3/+3
2015-05-09Process: Use BitField to store process flagsYuri Kunde Schlesner1-10/+4
2015-05-09Process: Support parsing of exheader kernel capsYuri Kunde Schlesner1-3/+70
2015-05-09Kernel: Introduce skeleton Process class to hold process dataYuri Kunde Schlesner1-0/+35