Commit Graph
1482 Commits
Author SHA1 Message Date
Unknown W. Brackets 0d828554bc Add a wait type for modules to handle return right. 2013-05-26 10:54:11 -07:00
Unknown W. Brackets 727b3b4127 Get rid of the "root" return hack. 2013-05-26 10:36:18 -07:00
Unknown W. Brackets c34854ead3 Use a custom RA for module funcs. Not used yet.
But it will be.
2013-05-26 10:28:08 -07:00
Unknown W. Brackets a779645152 Wrap sceKernelGetThreadExitStatus().
So it's usable internally too.
2013-05-26 10:17:59 -07:00
Henrik Rydgård 138c3fb835 Merge pull request #1927 from unknownbrackets/scheduling2
Implement suspend/resume HLE for threads
2013-05-26 03:06:42 -07:00
Henrik Rydgård 49d9af1176 Merge pull request #1924 from unknownbrackets/scheduling
Fix sceKernelWakeupThread
2013-05-26 03:05:01 -07:00
Unknown W. Brackets 2c4254d0c8 Disallow suspend/resume on current thread.
Might be some extra subtle things with callbacks/interrupts here...
2013-05-26 02:25:53 -07:00
Unknown W. Brackets e6795b1a41 Initial attempt at a suspend/resume thread impl. 2013-05-26 01:01:29 -07:00
Unknown W. Brackets 690e52bc34 Make sure we keep the suspend state around.
I assume it sticks around in this case.
2013-05-25 23:57:04 -07:00
Unknown W. Brackets 2f69378bf6 Return the moduleId in sceKernelUnloadModule().
Final Fantasy 4 very clearly requires this.
2013-05-25 21:07:41 -07:00
Unknown W. Brackets ac7bfcb6ef Report unfinished code in sceKernelAllocateTls(). 2013-05-25 20:43:47 -07:00
Unknown W. Brackets 084ad5aa53 Wrap the sleep/wakeup HLE funcs. 2013-05-25 20:43:19 -07:00
Unknown W. Brackets 8adf1e9ede Properly return success in sceKernelWakeupThread().
Fixes #1596, fixes #1796, possibly others.  I can't believe how long
I stared at this code and debugged it without noticing such a simple
thing...
2013-05-25 20:28:22 -07:00
Unknown W. Brackets 50c085401a Remove UNIMPL from FileTime funcs, they work now. 2013-05-25 19:15:15 -07:00
Unknown W. Brackets f24b4ef7de Implement the sceRtc*Win32FileTime() funcs. 2013-05-25 17:27:34 -07:00
Unknown W. Brackets 2304e9253e Make sure not to use invalid module start params.
If there's a 0, those parameters are not likely valid.
2013-05-25 15:15:29 -07:00
Henrik Rydgard 5c416d80c7 Fix PSP_UMD_TYPE_GAME... 2013-05-24 19:52:46 +02:00
raven02 84ccfde2ef Fix crash when low level decode hits atrac3 audio 2013-05-24 23:20:14 +08:00
raven02 95cbd3c50c Add (low level) to distinguish with high level decode 2013-05-24 22:43:10 +08:00
raven02 104c20d787 Add atrac3+ mono audio WARN_LOG when atrac->atracChannels == 1 2013-05-24 23:33:22 +09:00
Henrik Rydgård b9c21d32f0 Merge pull request #1894 from CPkmn/kernel
Improve sceKernelStartModule handling
2013-05-24 07:16:12 -07:00
CPkmn b9a72b99e2 Update sceKernelModule.cpp 2013-05-24 08:06:31 -06:00
raven02 bc1c83afc6 Integrate atrac3+ low level decoding from oioitff media branch 2013-05-24 21:15:51 +08:00
Unknown W. Brackets b4eec4dca7 Perform the actual variable relocations, hurray. 2013-05-24 01:45:08 -07:00
Unknown W. Brackets 8d71f33aae Keep track of imported/exported vars.
Not yet actually linked up, though.
2013-05-24 00:03:39 -07:00
Unknown W. Brackets 45b72c8b4a Add a couple more unknown syscalls. 2013-05-23 23:41:10 -07:00
Unknown W. Brackets fe4bd8f66c Add more logging to elf loading, cleanup. 2013-05-23 23:41:10 -07:00
Henrik Rydgård 2bf1beb8d8 Merge pull request #1898 from oioitff/audio-fix
Implement pcm voice correctly
2013-05-23 13:14:20 -07:00
oioitff 455708bbc3 Fake implement low level atrac decoder. 2013-05-24 01:00:27 +08:00
oioitff 67eeb112a9 Normally, remainFrame is not less than 0. 2013-05-24 00:55:10 +08:00
oioitff 99f8041375 Implement pcm voice correctly. 2013-05-24 00:42:15 +08:00
CPkmn d051e25b70 Update sceKernelModule.cpp 2013-05-23 10:25:13 -06:00
Henrik Rydgard 0e77b44130 Buildfix 2013-05-23 13:50:31 +02:00
CPkmn f83e19aa2d Update sceKernelModule.cpp 2013-05-23 01:36:23 -06:00
Henrik Rydgård 42cf3a5c80 Merge pull request #1888 from raven02/patch-28
Keep the High/low water marks the same for all platform
2013-05-23 00:35:56 -07:00
Henrik Rydgård bd9313eaee Merge pull request #1846 from raven02/patch-22
Consolidate pspUmdError/pspUmdType to sceUmd.h
2013-05-23 00:35:38 -07:00
CPkmn 1150b794bf Improve sceKernelStartModule handling
Fixes 'bogus priority' errors (and maybe more).
Tested on God Eater Burst and fixed its "bogus priority". I haven't found any games this breaks.
2013-05-23 00:31:30 -07:00
Henrik Rydgard 0ed09532f9 Quick sceMd5 implementation, needs tests 2013-05-22 11:05:30 +02:00
Unknown W. Brackets 8580780194 Add more unknown syscalls from reporting. 2013-05-22 01:19:25 -07:00
Unknown W. Brackets d45104afb6 Separate the func import count from the var count.
Still doesn't actually load the variables imports, but at least it
won't skip a bunch of funcs and break even worse.
2013-05-21 23:34:28 -07:00
raven02 b76ee8f2ec Better use max=2 and min=1 for safety 2013-05-22 14:33:21 +08:00
raven02 73311c746b Keep the High/low water marks the same for all platform 2013-05-22 11:38:10 +08:00
Unknown W. Brackets 9ae2bedeab Fix sceVaudioChReserve format parameter. 2013-05-21 07:38:37 -07:00
Henrik Rydgård b2701f4421 Merge pull request #1879 from unknownbrackets/minor
Fix sceAudio shutdown and bogus priority errors
2013-05-21 01:07:09 -07:00
Unknown W. Brackets 839ff0a795 Correctly reset audio channels on shutdown.
Fixes #1876.
2013-05-21 00:59:05 -07:00
Unknown W. Brackets afc24a54e2 Ignore start module params that are 0.
Pretty sure this is why "bogus priority 0" is being logged.
2013-05-21 00:57:33 -07:00
Unknown W. Brackets cb3d021a7f Link long module names properly (truncating.) 2013-05-21 00:33:12 -07:00
Henrik Rydgård ad0c1fdb01 Merge pull request #1877 from unknownbrackets/elf-fix
Link dynamically sized exports correctly as well
2013-05-20 23:46:12 -07:00
Unknown W. Brackets 5fe38f525d Link dynamically sized exports correctly as well. 2013-05-20 23:39:43 -07:00
The Dax dd7c66cd49 Implement unknown SceIOIoCtl command 0x1f30003. It always returns 1. Pangya Fantasy Golf seems to use it, and implementing it makes the game boot, but it still has serious graphical issues. 2013-05-20 16:49:26 -04:00