summaryrefslogtreecommitdiff
path: root/src/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge pull request #1545 from DarkLordZach/psmGravatar bunnei2018-10-224-0/+90
|\ \ \ \ | | | | | | | | | | psm: Add psm service and stub commands 0 and 1
| * | | | psm: Stub GetChargerTypeGravatar Zach Hilman2018-10-212-24/+27
| | | | | | | | | | | | | | | Used by LovePotion Lua Homebrew. Stubbed as connected to official Nintendo Switch dock.
| * | | | psm: Stub GetBatteryChargePercentageGravatar Zach Hilman2018-10-202-1/+14
| | | | | | | | | | | | | | | | | | | | Used by LovePotion Lua Homebrew. Stubbed to return 100% charge.
| * | | | service: Add skeleton for psm serviceGravatar Zach Hilman2018-10-204-0/+74
| |/ / / | | | | | | | | | | | | Seems to be the power controller. Listed in switchbrew under the category PTM services.
* | | | Merge pull request #1538 from lioncash/queryGravatar bunnei2018-10-221-1/+1
|\ \ \ \ | | | | | | | | | | svc: Fix vma boundary check in svcQueryMemory
| * | | | svc: Fix vma boundary check in svcQueryMemoryGravatar Lioncash2018-10-201-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | This should be comparing against the queried process' vma_map, not the current process'. The only reason this hasn't become an issue yet is we currently only handle one process being active at any time.
* | | | service: Add the basic skeleton for the NPNS servicesGravatar Lioncash2018-10-214-2/+109
| | | |
* | | | hid: Update service function table for hidbusGravatar Lioncash2018-10-211-0/+1
| | | | | | | | | | | | | | | | Updated based off information provided by Switchbrew.
* | | | am: Add the basic skeleton for the tcap serviceGravatar Lioncash2018-10-214-0/+44
| | | | | | | | | | | | | | | | Added based off information provided by Switchbrew.
* | | | am: Update service function tablesGravatar Lioncash2018-10-214-15/+60
| | | | | | | | | | | | | | | | Updated based off information from Switchbrew
* | | | prepo: Update service function table.Gravatar Lioncash2018-10-211-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | Also introduces the new prepo:a2 service. Updated based off information provided by Switchbrew.
* | | | lbl: Update service function table namesGravatar Lioncash2018-10-211-28/+28
| | | | | | | | | | | | | | | | Updated based off information provided by Switchbrew.
* | | | Added auto controller switching to supported controllers and single joycon ↵Gravatar David Marcec2018-10-202-4/+189
|/ / / | | | | | | | | | | | | | | | button rotation This is a subset of the better-hid-2 changes, this fixes input in various games which don't support dual joycons. This pr will search for the next best controller which is supported by the current game
* | | Merge pull request #1520 from lioncash/sanGravatar bunnei2018-10-193-3/+50
|\ \ \ | | | | | | | | svc: Add missing sanitizing checks for MapSharedMemory/UnmapSharedMemory
| * | | svc: Add missing sanitizing checks for MapSharedMemory/UnmapSharedMemoryGravatar Lioncash2018-10-183-3/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that the changes clarifying the address spaces has been merged, we can wrap the checks that the kernel performs when mapping shared memory (and other forms of memory) into its own helper function and then use those within MapSharedMemory and UnmapSharedMemory to complete the sanitizing checks that are supposed to be done.
* | | | Merge pull request #1526 from lioncash/svc-idGravatar bunnei2018-10-198-53/+163
|\ \ \ \ | | | | | | | | | | service: Update function tables
| * | | | es: Update service function tablesGravatar Lioncash2018-10-191-7/+11
| | | | | | | | | | | | | | | | | | | | Updated based off information provided by Switchbrew.
| * | | | audio: Update service function tablesGravatar Lioncash2018-10-191-17/+20
| | | | | | | | | | | | | | | | | | | | Updated based off information provided by Switchbrew.
| * | | | omm: Update service function tablesGravatar Lioncash2018-10-191-16/+18
| | | | | | | | | | | | | | | | | | | | Updated based off information provided by Switchbrew.
| * | | | nifm: Update service function tablesGravatar Lioncash2018-10-191-0/+1
| | | | | | | | | | | | | | | | | | | | Updated based off information provided by switchbrew.
| * | | | hid: Update service function tablesGravatar Lioncash2018-10-191-6/+45
| | | | | | | | | | | | | | | | | | | | Updated based off information provided by Switchbrew.
| * | | | nim: Add the basic skeleton of the nim:eca serviceGravatar Lioncash2018-10-191-0/+17
| | | | | | | | | | | | | | | | | | | | Added based off information provided by Switchbrew
| * | | | ns: Update service function tableGravatar Lioncash2018-10-191-6/+49
| | | | | | | | | | | | | | | | | | | | Updated based off information provided by Switchbrew.
| * | | | set_cal: Update service function tableGravatar Lioncash2018-10-191-1/+2
| | | | | | | | | | | | | | | | | | | | Updated based on information from Switchbrew.
* | | | | Merge pull request #1530 from DarkLordZach/aoc-8Gravatar bunnei2018-10-192-1/+16
|\ \ \ \ \ | | | | | | | | | | | | aoc_u: Stub GetAddOnContentListChangedEvent
| * | | | | aoc_u: Stub GetAddOnContentListChangedEventGravatar Zach Hilman2018-10-192-1/+16
| | |_|_|/ | |/| | | | | | | | | | | | | This event signals the game when new DLC is purchased from the eShop while the game is running. Since, for the forseeable future, yuzu will not have this ability, it seems safe to stub with a dummy event that will never fire. This is needed to boot Sonic Mania Plus (update v1.04).
* | | | | Merge pull request #1516 from lioncash/hidGravatar bunnei2018-10-1918-19/+33
|\ \ \ \ \ | | | | | | | | | | | | hid: Minor cleanup-related changes
| * | | | | hid/controller: Remove unused header inclusionsGravatar Lioncash2018-10-179-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | swap.h only needs to be present in the header for the type aliases and definitions, it's not actually needed in the cpp files though. input.h is just unused entirely in xpad.h
| * | | | | hid/controller/npad: Remove unused dump_idx member variableGravatar Lioncash2018-10-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Given it's unused, we may as well toss it.
| * | | | | hid/controller/npad: Remove unnecessary semicolon from the closing brace of ↵Gravatar Lioncash2018-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | LedPattern's constructor
| * | | | | hid/controller/npad: Remove #pragma once from the cpp fileGravatar Lioncash2018-10-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | This is only useful in headers.
| * | | | | hid/controller/npad: Move npad_id_list into the cpp fileGravatar Lioncash2018-10-172-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is just a lookup table, and since it's private, there's nothing really stateful about it, so we can just move it into the cpp file.
| * | | | | hid/controller/npad: Remove unnecessary const from void return typeGravatar Lioncash2018-10-172-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This literally does nothing.
| * | | | | hid/controller: Default the destructors of all controller types in the cpp fileGravatar Lioncash2018-10-1716-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These classes are non-trivial and are definitely going to be changed in the future, so we default these to prevent issues with forward declarations, and to keep the compiler from inlining tear-down code.
| * | | | | controller_base: Default the base class constructor and destructor in the ↵Gravatar Lioncash2018-10-172-2/+4
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | cpp file The destructor doesn't need to be a pure-virtual function.
* | | | | crypto: Use compressed sizes in offset calculation for KIP decompressionGravatar Zach Hilman2018-10-191-1/+2
| |/ / / |/| | | | | | | | | | | Fixes a fatal crash on start when deriving keys.
* | | | Stubbed home blockingGravatar David Marcec2018-10-202-4/+36
| |/ / |/| | | | | | | | Needed by arms due to new hid rework
* | | Merge pull request #1523 from lioncash/lockGravatar bunnei2018-10-181-9/+15
|\ \ \ | | | | | | | | svc: Add missing error checks in svcArbitrateLock/svcArbitrateUnlock
| * | | svc: Check for word alignment of addresses within ↵Gravatar Lioncash2018-10-181-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svcArbitrateLock/svcArbitrateUnlock The kernel itself checks whether or not the provided addresses are word aligned before continuing, so we should be doing the same.
| * | | common: Move Is4KBAligned() to alignment.hGravatar Lioncash2018-10-181-9/+7
| | | | | | | | | | | | | | | | | | | | Aligning on 4KB pages isn't a Switch-specific thing, so this can be moved to common so it can be used with other things as well.
* | | | Merge pull request #1511 from lioncash/contentGravatar bunnei2018-10-182-258/+292
|\ \ \ \ | | | | | | | | | | content_archive: Minor reorganization changes
| * | | | content_archive: Simpify assignment of bktr_base_romfs in the constructorGravatar Lioncash2018-10-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | std::move doesn't actually dereference the data, so it doesn't matter whether or not the type is null.
| * | | | content_archive: Make IsValidNCA() an internally linked functionGravatar Lioncash2018-10-162-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This is only ever used within the cpp file, so it can just be an internal function.
| * | | | content_archive: Simplify rights ID checkGravatar Lioncash2018-10-161-2/+2
| | | | | | | | | | | | | | | | | | | | This is the same as using std::any_of with an inverted predicate.
| * | | | content_archive: Split loading into separate functionsGravatar Lioncash2018-10-162-253/+290
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The constructor alone is pretty large, the reading code should be split into its consistuent parts to make it easier to understand it without having to build a mental model of a 300+ line function.
| * | | | content_archive: Pass and take NCASectionHeader instance by referenceGravatar Lioncash2018-10-162-3/+3
| | |_|/ | |/| | | | | | | | | | | | | | Each header is 512 bytes in size, which is kind of an excessive amount to copy all the time when it's possible to avoid doing so.
* | | | Merge pull request #1521 from ogniK5377/imp-mmuGravatar bunnei2018-10-181-8/+42
|\ \ \ \ | | | | | | | | | | Used better names for mm:u and fixed a bad stub
| * | | | Used better names for mm:u and fixed bad stubGravatar David Marcec2018-10-191-8/+42
| | |_|/ | |/| | | | | | | | | | InitializeWithId needs to return an id which is a u32 which should be a non zero value
* | | | core: Remove unnecessary assert in ArmInterface()Gravatar Lioncash2018-10-181-2/+1
| |_|/ |/| | | | | | | | | | | CpuCore already does this sort of checking, so we can just call that instead of duplicating the assertions.
* | | Merge pull request #1510 from lioncash/xciGravatar bunnei2018-10-183-7/+8
|\ \ \ | |/ / |/| | XCI: Add function for checking the existence of the program NCA