summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* core: kernel: Move SVC to its own namesapce.bunnei2020-04-171-3/+3
|
* kernel/svc: Deglobalize the supervisor call handlersLioncash2019-04-081-1/+5
| | | | | | | | | | | Adjusts the interface of the wrappers to take a system reference, which allows accessing a system instance without using the global accessors. This also allows getting rid of all global accessors within the supervisor call handling code. While this does make the wrappers themselves slightly more noisy, this will be further cleaned up in a follow-up. This eliminates the global system accessors in the current code while preserving the existing interface.
* vm_manager: Migrate MemoryInfo and PageInfo to vm_manager.hLioncash2018-12-121-16/+0
| | | | | | | | | Gets the two structures out of an unrelated header and places them with the rest of the memory management code. This also corrects the structures. PageInfo appears to only contain a 32-bit flags member, and the extra padding word in MemoryInfo isn't necessary.
* svc: Localize the GetInfo enum class to the function itselfLioncash2018-10-261-32/+0
| | | | Nothing from this enum is intended to be used outside of this function.
* svc: Implement svcGetInfo command 0xF0000002Lioncash2018-10-261-0/+1
| | | | | | | | | | This retrieves: if (curr_thread == handle_thread) { result = total_thread_ticks + (hardware_tick_count - last_context_switch_ticks); } else if (curr_thread == handle_thread && sub_id == current_core_index) { result = hardware_tick_count - last_context_switch_ticks; }
* svc: Clarify enum values for AddressSpaceBaseAddr and AddressSpaceSize in svcGetInfo()Lioncash2018-10-151-2/+2
| | | | | | | | | | | | | So, one thing that's puzzled me is why the kernel seemed to *not* use the direct code address ranges in some cases for some service functions. For example, in svcMapMemory, the full address space width is compared against for validity, but for svcMapSharedMemory, it compares against 0xFFE00000, 0xFF8000000, and 0x7FF8000000 as upper bounds, and uses either 0x200000 or 0x8000000 as the lower-bounds as the beginning of the compared range. Coincidentally, these exact same values are also used in svcGetInfo, and also when initializing the user address space, so this is actually retrieving the ASLR extents, not the extents of the address space in general.
* Add & correct miscellaneous things (#470)greggameplayer2018-05-261-0/+3
| | | | | | | | | | | | * add some InfoType * correct OpenApplicationProxy cmd number * add IDisplayController functions * fix clang-format * add more system languages
* svc: Add additional fields to MemoryInfo struct.bunnei2018-01-191-0/+4
|
* SVC: Add 4.0.0+ comment to GetInfoType enum values.Subv2018-01-171-0/+1
|
* Added more svcGetInfo pairsDavid Marcec2018-01-161-0/+13
|
* yuzu: Update license text to be consistent across project.bunnei2018-01-131-1/+1
|
* Threads: Added enum values for the Switch's 4 cpu cores and implemented svcGetInfo(AllowedCpuIdBitmask)Subv2018-01-101-0/+1
|
* kernel: Rename Semaphore to ConditionVariable.bunnei2018-01-091-1/+1
|
* hle: Move SVC code to kernel namespace.bunnei2018-01-031-0/+38