Subv
dd9a1fd943
Kernel/Threads: A thread waking up by timeout from a WaitProcessWideKey may already have an assigned lock owner.
This situation may happen like so:
Thread 1 with low priority calls WaitProcessWideKey with timeout.
Thread 2 with high priority calls WaitProcessWideKey without timeout.
Thread 3 calls SignalProcessWideKey
- Thread 2 acquires the lock and awakens.
- Thread 1 can't acquire the lock and is put to sleep with the lock owner being Thread 2.
Thread 1's timeout expires, with the lock owner still being set to Thread 2.
8 years ago
mailwl
caf7d55de4
Service/time: implement posix time to calendar conversion
8 years ago
Subv
2a690458b5
Kernel/Thread: Corrected a typo that caused the affinity mask to never be changed.
8 years ago
Subv
40c82fc9c5
Kernel/SVC: Support special core values -2 and -3 in svcSetThreadCoreMask.
Also added some proper error handling.
8 years ago
greggameplayer
339fd812b3
add IPC CommandType & Some HID FunctionInfo ( #487 )
* add some CommandType
* add some hid FunctionInfo
* add some other HID FunctionInfo
* delete non useful comments
8 years ago
Subv
bcae826522
Kernel/Thread: Corrected a typo in an assert about the processor id.
8 years ago
mailwl
c333f12eae
Services/nvdrv: add '/dev/nvhost-nvdec' device
8 years ago
bunnei
16a06abf97
nvhost_ctrl: Stub out IocCtrlEventRegister.
8 years ago
bunnei
fb8aa21fa5
nvhost_ctrl: Stub out IocCtrlEventWaitAsyncCommand.
8 years ago
mailwl
3c612dea08
Service/BCAT: add module and services
8 years ago
David Marcec
003023a669
NvOsGetConfigU32 should return null instead of 0 for default output
8 years ago
bunnei
678ff27162
am: Stub IApplicationFunctions GetDisplayVersion.
8 years ago
greggameplayer
4201782cea
Add & correct miscellaneous things ( #470 )
* add some InfoType
* correct OpenApplicationProxy cmd number
* add IDisplayController functions
* fix clang-format
* add more system languages
8 years ago
David
a89f219336
GetAudioRendererWorkBufferSize impl ( #465 )
* GetAudioRendererWorkBufferSize impl
Impl of GetAudioRendererWorkBufferSize based on RE, if this can be cleaned up, please contribute!
* Naming conventions
* Removed unneeded placeholder
* lioncache changes
* fixed const
* switched to Common::AlignUp
8 years ago
David
7787653dad
Stubbed NVGPU_GPU_IOCTL_ZBC_SET_TABLE ( #463 )
We have no clue on what this actually does yet so stubbing it since it's just input only should be fine for now
8 years ago
mailwl
2fd168729a
Stub NVGPU_IOCTL_CHANNEL_SET_TIMEOUT
Used in Nintendo Labo ToyCon 1&2
8 years ago
David Marcec
8ba0ecb303
Fix deadlocks caused from HID having too many layouts
Games such as SMO deadlock if we have more than 2 layouts
8 years ago
greggameplayer
90fa34e30c
Add & correct some error modules
8 years ago
greggameplayer
bace166b2b
change some functions
according to the changes made previously
8 years ago
greggameplayer
7f5e8a533a
correct placement and add size check
8 years ago
greggameplayer
c4f1216df1
Add ioctl commands with their params and size check
8 years ago
David
ccfff97269
Implemented NVHOST_IOCTL_CHANNEL_GET_WAITBASE ( #440 )
* Implemented NVHOST_IOCTL_CHANNEL_GET_WAITBASE
struct + 4 seems to be hard coded at 0 and struct + 0 seems to be ignored?
* IocGetWaitbase -> IocChannelGetWaitbaseCommand
* Added super late fixes
8 years ago
greggameplayer
f79c96c560
Correct audio command numbers & add or rename some functions ( #455 )
* Add unknown function at the number command 2
* correct audout:u commands numbers
* correct audrec:u cmd number & add Unknown function
* correct IAudioDevice command numbers
* correct codecctl cmd numbers & rename the 8 function
* correct place of unknown function & fix clang-format
8 years ago
Subv
fe463e2a1c
Mutex: Do not assert when the mutex waiting threads list isn't empty on mutex release.
A thread may own multiple mutexes at the same time, and only release one of them while other threads are waiting for the other mutexes.
8 years ago
Subv
722736e4c9
GPU: Implemented the nvmap Free ioctl.
It releases a reference to an nvmap object
8 years ago
Subv
9abfc3df7b
GPU: Implemented nvhost-as-gpu's UnmapBuffer ioctl.
It removes a mapping previously created with the MapBufferEx ioctl.
8 years ago
greggameplayer
c97505ad44
Add and correct some Error Modules ( #444 )
* Add and correct some Error Modules
8 years ago
Subv
e3e8902d40
Kernel/SVC: Signal the highest priority threads first in svcSignalProcessWideKey.
8 years ago
Subv
8ce8160ce3
Kernel/Threads: Reschedule the proper core when operating on that core's threads.
8 years ago
Subv
8935ca8e11
SVC: Removed unused WaitSynchronization1 function
8 years ago
greggameplayer
357c048a07
rename fatal:u functions & add ThrowFatal
8 years ago
greggameplayer
72725e1599
Properly update fatal.h void name
8 years ago
greggameplayer
63735e7339
Properly rename fatal module functions
8 years ago
David Marcec
75bd5bf8be
Added RequestWithContext & ControlWithContext
8 years ago
Hexagon12
44797f150c
Updated nfp with more service names
8 years ago
David Marcec
3a41706e7f
More accurate GetTPCMasks impl
8 years ago
bunnei
ce7d89cb0e
thread: Rename mask to affinity_masks.
8 years ago
bunnei
d96be9b56b
thread: Support core change on ResumeFromWait and improve ChangeCore.
8 years ago
bunnei
eabfdfe4ec
scheduler: Protect scheduling functions with a global mutex.
8 years ago
bunnei
82bb8701ea
thread: Initialize ideal_core and mask members.
8 years ago
bunnei
5a5850af69
threading: Reschedule only on cores that are necessary.
8 years ago
bunnei
9e559ceb09
svc: Implement GetThreadCoreMask and SetThreadCoreMask.
8 years ago
bunnei
922b5c326e
thread: Implement ChangeCore function.
8 years ago
bunnei
7b6dd22605
svc: SignalProcessWideKey should apply to all cores.
8 years ago
bunnei
6c4f161ba2
svc: Implement GetCurrentProcessorNumber.
8 years ago
bunnei
44c565aeca
core: Implement multicore support.
8 years ago
Hexagon12
e37fc58ae6
Stubs for QLaunch ( #428 )
* Stubs for QLaunch
* Wiped unrelated stuff
* Addressed comment
* Dropped GetPopFromGeneralChannelEvent
8 years ago
Max Thomas
a12f45de82
hid: Tweaks, Analog Sticks ( #435 )
* hid: Update mouse/keyboard state
* hid: Working analog sticks
* hid: Nits
* hid: Nits
* hid: Update mystery sections
* hid: Tweaks
8 years ago
Lioncash
1b310cbb3a
general: Make formatting of logged hex values more straightforward
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).
8 years ago
bunnei
5e4d01f80c
ipc: Add support for PopIpcInterface() method.
- This can be used for domain objects as inputs to service functions.
8 years ago