David
bf7ed82620
Extra nvdrv support ( #162 )
...
* FinishInitalize needed for 3.0.1+ games
* nvdrv:s and nvdrv:t both use NVDRV
* Most settings return 0 on hardware, disabled NV_MEMORY_PROFILER for now.
NVN_THROUGH_OPENGL & NVRM_GPU_PREVENT_USE are a few interesting settings to look at. Carefully choosing settings can help with drawing graphics later on
* Initial /dev/nvhost-gpu support
* ZCullBind
* Stubbed SetErrorNotifier
* Fixed SetErrorNotifier log, Added SetChannelPriority
* Allocate GPFIFO Ex2, Allocate Obj Ctx, Submit GPFIFO
* oops
* Fixed up naming/structs/enums. Used vector instead of array for "gpfifo_entry"
* Added missing fixes
* /dev/nvhost-ctrl-gpu
* unneeded struct
* Forgot u32 in enum class
* Automatic descriptor swapping for ioctls, fixed nvgpu_gpu_get_tpc_masks_args being incorrect size
* nvdrv#QueryEvent
* Renamed logs for nvdrv
* Refactor ioctl so nv_result isn't needed
* /dev/nvhost-as-gpu
* Fixed Log service naming, CtxObjects now u32, renamed all structs, added static_asserts to structs, used INSERT_PADDING_WORDS instead of u32s
* nvdevices now uses "Ioctl" union,
* IoctlGpfifoEntry now uses bit field
* final changes
2018-02-05 18:19:31 -08:00
bunnei
de6bb17846
IApplicationFunctions: Stub out EnsureSaveData.
2018-02-05 20:58:11 -05:00
bunnei
96c82f3cf8
Merge pull request #164 from ogniK5377/libnx_sm_fix
...
Don't call UNIMPLEMENTED for 'empty services', just return error code
2018-02-05 14:01:46 -08:00
David Marcec
6a19c31308
Dont call UNIMPLEMENTED for 'empty services', just return error code
2018-02-05 02:03:22 -08:00
David Marcec
a6eb36e548
Changed .istorage to .romfs
2018-02-05 00:01:10 -08:00
bunnei
67baceaff0
set: GetAvailableLanguageCodes should not return lang_codes size.
2018-02-04 23:42:43 -05:00
bunnei
c114abb301
nvflinger: Signal BufferQueue native handle event.
...
- This gets BOTW booting.
2018-02-04 23:00:35 -05:00
bunnei
2b621bc1d4
logger: Add Time service logging category.
2018-02-04 22:59:52 -05:00
bunnei
99ff0f523f
logger: Add SET service logging category.
2018-02-04 22:55:45 -05:00
bunnei
18ce7f89f9
logger: Add PCTL service logging category.
2018-02-04 22:44:00 -05:00
bunnei
9f14ebbd89
logger: Add LM service logging category.
2018-02-04 22:41:55 -05:00
bunnei
3aeeee5ae3
logger: Add APM service logging category.
2018-02-04 22:39:47 -05:00
bunnei
e7bad17a87
lm: Ensure log string is non-empty before checking back().
2018-02-04 22:36:57 -05:00
bunnei
aa91ad0445
logger: Add NIFM service logging category.
2018-02-04 22:35:42 -05:00
bunnei
951526d8b8
logger: Add VI service logging category.
2018-02-04 22:26:44 -05:00
bunnei
93ffd1fc30
hid: Stub out several functions.
2018-02-04 22:24:20 -05:00
bunnei
aa035aa7f9
hid: Implement CreateActiveVibrationDeviceList.
2018-02-04 17:06:14 -05:00
bunnei
fac2babc85
logger: Use Service_HID category where applicable.
2018-02-04 17:02:39 -05:00
bunnei
65868fffb2
logger: Use Service_NVDRV category where applicable.
2018-02-04 17:00:33 -05:00
bunnei
ad816bab00
logger: Add AM service logging category.
2018-02-04 16:58:12 -05:00
bunnei
02a31a0771
logger: Add "account" service logging category.
2018-02-04 16:40:12 -05:00
bunnei
fafea3b5fd
acc_u0: Stub out GetLastOpenedUser.
2018-02-04 16:32:01 -05:00
bunnei
25cb7a5792
Merge pull request #160 from bunnei/svc-improvements
...
Several SVC fixes and improvements
2018-02-04 13:25:05 -08:00
bunnei
23c46db6f7
GetInfo: Implement IsCurrentProcessBeingDebugged.
2018-02-04 12:34:45 -05:00
bunnei
37967da1f2
WaitProcessWideKeyAtomic: Handle case where condition variable was already created.
2018-02-04 12:30:51 -05:00
mailwl
451d4c4336
acc:u0 : stub GetAccountId
2018-02-04 09:55:25 +03:00
bunnei
4a19b608fd
svc: SharedMemory size should be 64-bits and cleanup.
2018-02-03 13:36:54 -05:00
bunnei
9892a119da
ArbitrateLock: Assert that requesting_thread is current_thread.
2018-02-03 13:29:18 -05:00
bunnei
62f2f54459
Merge pull request #157 from bunnei/fix-duplicate-session
...
controller: DuplicateSession should return a ClientSession.
2018-02-03 10:25:01 -08:00
bunnei
eb3be60fc2
controller: DuplicateSession should return a ClientSession.
2018-02-03 12:09:33 -05:00
mailwl
41ca591e11
Service:nifm: add nifm:a, nifm:s and nifm:u services
2018-02-03 18:09:51 +03:00
mailwl
e974ad29c7
Service/am: Add AppletAE service ( #153 )
...
* Add AppletAE, step 1: move common interfaces to am.h
* Add AppletAE, step 2
2018-02-02 13:03:40 -08:00
bunnei
e6a83e2024
Merge pull request #154 from mailwl/vi_create_stray_array
...
vi::CreateStrayLayer : add padding to request
2018-02-02 09:01:21 -08:00
bunnei
9ebcfa1bd2
Merge pull request #155 from mailwl/vi-services
...
Services/vi: add vi:s and vi:u services
2018-02-02 09:00:31 -08:00
bunnei
b5846ac67d
Merge pull request #152 from shinyquagsire23/sharedmem-valid-bounds
...
shared_memory: Only mark addresses as invalid if they are within the heap
2018-02-02 08:59:45 -08:00
mailwl
be7ef9498d
Services/vi: add vi:s and vi:u services
2018-02-02 12:59:50 +03:00
mailwl
9b3b9fe930
vi::CreateStrayLayer : add padding to request
2018-02-02 12:03:02 +03:00
shinyquagsire23
cd0befbd05
shared_memory: Only mark addresses as invalid if they are within the heap
2018-01-29 23:38:56 -07:00
mailwl
3dbe629396
[WIP] sfdnsres: stub ( #146 )
...
sfdnsres: Add several stubs
2018-01-29 22:29:47 -08:00
bunnei
a36f4860f9
Merge pull request #148 from MerryMage/feature/special-memory
...
memory: Replace all memory hooking with Special regions
2018-01-27 15:20:53 -05:00
MerryMage
7a23a53396
memory: Replace all memory hooking with Special regions
2018-01-27 15:16:39 +00:00
bunnei
9a0a22e596
time: Implement ISteadyClock::GetCurrentTimePoint.
2018-01-25 21:29:39 -05:00
bunnei
0c455925ed
audout_u: Various cleanups.
2018-01-24 22:38:19 -05:00
bunnei
ca93cbddcb
ResponseBuilder: Use a bit field for customizing instead of always_move_handles.
2018-01-24 22:24:20 -05:00
bunnei
747ae39608
time: Stub GetSystemClockContext function.
2018-01-24 22:24:18 -05:00
bunnei
c943b30b0a
server_session: Fix scenario where all domain handlers are closed.
2018-01-24 22:24:16 -05:00
bunnei
f328cb2c7c
hle: Rename RequestBuilder to ResponseBuilder.
2018-01-24 22:24:10 -05:00
bunnei
427b97e60c
service: Fix all incorrect IPC response headers.
2018-01-24 22:21:33 -05:00
bunnei
2b07c87f0c
ipc_helpers: Make interface domain agnostic and add header validation.
2018-01-24 22:19:01 -05:00
bunnei
a3aadaea60
hle: Integrate Domain handling into ServerSession.
2018-01-24 22:18:56 -05:00
bunnei
4fabdf77d7
hle: Remove Domain and SyncObject kernel objects.
2018-01-24 22:18:54 -05:00
bunnei
2ab0f638f0
handle_table: Remove ConvertSessionToDomain.
2018-01-24 22:18:51 -05:00
st4rk
d37214f8a3
audout:u OpenAudioOut and IAudioOut ( #138 )
...
* Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation
* Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation
* audout:u OpenAudioOut implementation and IAudioOut cmd 1,2,3,4,5 implementation
* using an enum for audio_out_state as well as changing its initialize to member initializer list
* Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass
* Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass
* added missing Audio loggin subclass, minor fixes, clang comment breakline
* Solving backend logging conflict
* minor fix
* Fixed duplicated Service NVDRV in backend.cpp, my bad
2018-01-24 22:17:54 -05:00
gdkchan
7f7e83a76b
Fix time returning epoch time in milliseconds rather than in seconds
2018-01-24 11:54:47 -03:00
N00byKing
eb8e4f17d3
Correct Spelling
2018-01-23 14:20:18 +01:00
bunnei
da98d4dd03
Merge pull request #135 from Subv/no_ports
...
IPC: Don't create unnecessary ports when returning sub interfaces.
2018-01-22 21:37:15 -05:00
Subv
aec193732c
Services: Added a todo about returning interfaces as domain objects in lm, hid and time.
2018-01-22 20:40:43 -05:00
bunnei
40bd3918a2
Merge pull request #133 from Subv/nvflinger2
...
AppletOE: Stubbed CreateManagedDisplayLayer to create a new layer in the default display.
2018-01-22 17:52:47 -05:00
Subv
fb5f2a653e
Time: Don't create unnecessary ports when retrieving the clock service sessions.
2018-01-22 17:42:11 -05:00
Subv
98ff4642ff
HID: Don't create an unnecessary port in CreateAppletResource.
2018-01-22 17:41:31 -05:00
Subv
3541a04d4d
LM: Don't create an unnecessary port in Initialize.
2018-01-22 17:35:40 -05:00
Subv
196f1226c5
IPC: Don't create an unnecessary port when using PushIpcInterface outside of a domain.
2018-01-22 17:31:23 -05:00
bunnei
7dae21fe2d
Merge pull request #134 from gdkchan/audout_hid_fix
...
Stub OpenAudioOut and fix a issue with HID IAppletResource
2018-01-22 17:09:09 -05:00
gdkchan
45f08a927c
Stub OpenAudioOut and fix a issue with HID IAppletResource being created more than once
2018-01-22 17:27:55 -03:00
Subv
dda6711a67
AppletOE: Stubbed CreateManagedDisplayLayer to create a new layer in the Default display.
...
This function is used by libnx to obtain a new layer.
2018-01-22 13:50:22 -05:00
Subv
db5b2c0f0f
AppletOE: Make ISelfController keep a reference to nvflinger.
...
It'll be needed when we implement CreateManagedDisplayLayer.
2018-01-22 13:46:36 -05:00
Subv
696b61b9c3
Services: Vi shouldn't be responsible for creating nvflinger.
...
It is now created during Service initialization and passed to all the services that need it.
2018-01-22 13:40:02 -05:00
Subv
edb1c9589b
VI: Move BufferQueue and NVFlinger to their own folder/namespace.
2018-01-22 11:54:58 -05:00
st4rk
564b91d219
Added stubs for audio services. ( #116 )
...
* stubs for audout:u, audin:u, audrec:u, audren:u, codecctl and decoding tables with nullptr for future implementations
* fixing the changes requested (remove private, explicit)
2018-01-21 22:03:36 -05:00
bunnei
961cfda2a4
Merge pull request #131 from lioncash/enum
...
nvmap: Make IoctlCommands an enum class
2018-01-21 22:01:27 -05:00
David
e08fdd4101
Added nvmemp, Added /dev/nvhost-ctrl, SetClientPID now stores pid ( #114 )
...
* Added nvmemp, Added /dev/nvhost-ctrl, SetClientPID now stores pid
* used clang-format-3.9 instead
* lowercase pid
* Moved nvmemp handlers to cpp
* Removed unnecessary logging for NvOsGetConfigU32. Cleaned up log and changed to LOG_DEBUG
* using std::arrays instead of c arrays
* nvhost get config now uses std::array completely
* added pid logging back
* updated cmakelist
* missing includes
* added array, removed memcpy
* clang-format6.0
2018-01-21 17:59:50 -05:00
bunnei
173cd959e8
Merge pull request #128 from Subv/parcel_query
...
VI: Implement the Query transaction of IHOSBinderDriver, and stubbed some results.
2018-01-21 17:56:06 -05:00
Lioncash
aa0cc8d3e9
nvmap: Add a return 0 underneath the UNIMPLEMENTED macro
...
This macro resolves to an empty macro in release builds.
2018-01-21 17:07:47 -05:00
Lioncash
5a05f7ef9f
nvmap: Make IoctlCommands an enum class
...
Prevents the enum values from polluting the surrounding scope
2018-01-21 17:07:13 -05:00
bunnei
a2c082be79
file_sys: Clang format fixes.
2018-01-21 15:51:45 -05:00
bunnei
a94d5d1938
fsp_srv: Various improvements to IStorage:Read implementation.
2018-01-21 15:51:43 -05:00
bunnei
985c960e85
deconstructed_rom_directory: Implement istorage loading for RomFS.
2018-01-21 15:39:31 -05:00
David Marcec
b609697364
filesystem: Implement basic IStorage functionality.
2018-01-21 15:39:28 -05:00
bunnei
0446482361
file_sys: Cleanup to better match Switch file system constructs.
...
file_sys: Add factory class for RomFS file system.
2018-01-21 15:39:26 -05:00
bunnei
f3cfe5caac
file_sys: Remove disk_archive, savedata_archive, and title_metadata.
2018-01-21 15:39:23 -05:00
bunnei
9d9038a32f
archive_backend: Minor changes to match Switch IFileSystem.
2018-01-21 15:39:20 -05:00
bunnei
bc4d08fe34
file_sys: Repurpose 3DS IVFC code for Switch ROMFS.
2018-01-21 15:39:18 -05:00
Rozlette
939be88b01
gdbstub: Update registers and sizes for aarch64
...
This gets gdbstub working at least to the point where clients can
communicate with it.
What works:
- Reading/writing GPRegs
- Reading/writing memory
- Interrupting the emulated program and continuing
What does NOT work:
- Breakpoints. Sizes have been updated to u64, but support will need to be
added in the interpreter for them to work.
- VRegs. Mostly because my gdb was having issues with 128-bit regs for
some reason. However, the current u128 representation is a bit
awkward to use and should probably be updated first.
2018-01-21 11:12:49 -06:00
Subv
bd76a7d7f7
VI: Implement the Query transaction of IHOSBinderDriver, and stubbed some results.
2018-01-21 11:13:47 -05:00
bunnei
4f20190c95
Merge pull request #72 from N00byKing/patch-2
...
Implement Pull #3275 from citra: core: Don't Shutdown before we've even Init-ed
2018-01-20 23:11:10 -05:00
bunnei
f1f6d730a5
Merge pull request #92 from gdkchan/nro_refactor
...
Fix NRO entry point
2018-01-20 23:10:15 -05:00
bunnei
cc0764ff06
Merge pull request #122 from tgsm/time-remove-pragma
...
service/time: remove accidental #pragmas
2018-01-20 22:27:10 -05:00
tgsm
c68e6e267a
service/time: remove accidental #pragmas
2018-01-20 21:34:37 -05:00
Rozlette
76b2dabd35
loader: Minor style fix in deconstructed_rom_directory
2018-01-20 20:13:53 -06:00
bunnei
ca0fb0079c
Merge pull request #117 from jroweboy/clang-format
...
Clang format as a build target
2018-01-20 19:12:21 -05:00
James Rowe
ea88c44eb8
Format: Run the new clang format on everything
2018-01-20 16:45:11 -07:00
bunnei
eea972611a
Merge pull request #120 from Rozelette/master
...
memory: Return false for large VAddr in IsValidVirtualAddress
2018-01-20 17:37:55 -05:00
Rozlette
ecc35e89e0
memory: Return false for large VAddr in IsValidVirtualAddress
2018-01-20 14:56:15 -06:00
bunnei
9b7e8a2e2b
loader: Clean up ctors and includes.
2018-01-20 15:54:17 -05:00
bunnei
b870202ad5
loader: Add DeconstructedRomDirectory for game dumps.
2018-01-20 15:54:15 -05:00
bunnei
f2d6ec1404
loader: Refactor to also pass filepath into IdentifyType.
2018-01-20 14:59:44 -05:00
bunnei
965c2bddb2
nso: Remove code specific to directory loading.
2018-01-20 14:59:42 -05:00
River City Ransomware
3f3688db0b
Port citra #3352 to yuzu ( #103 )
...
* Port citra #3352 to yuzu
This change allows non x86_64 architectures to compile yuzu by skipping the building of dynarmic
* Fixed clang-format errors
* fixes more clang-format errors
2018-01-19 19:36:09 -05:00
David
61a92c7347
Added CreateSharedMemory & UNIMPLEMENTED() for non existent services. ( #113 )
...
* Added svcCreateSharedMemory
* Services which are not implemented now throw UNIMPLEMENTED()
* clang-format
* changed perms to u32
* removed camelcase
2018-01-19 19:35:25 -05:00
River City Ransomware
39827d573a
Fixes some cast warnings, partial port of citra #3064 ( #106 )
...
* Fixes some cast warnings, partially fixes citra #3064
* Converted casts to uint32_t to u32
* Ran clang-format
2018-01-19 18:01:41 -05:00