Commit Graph

149 Commits

Author SHA1 Message Date
nachume
c2c6adb7c9 Add new sceNp/scePauth and some stubs for unknown functions on THE IDOLM@STER SP. 2013-04-29 12:40:09 +09:00
Unknown W. Brackets
d131588a6d Validate sceKernelStartThread() args better. 2013-04-28 00:34:49 -07:00
JimLee168
3ce26e03df Add part sceKernelExtendThreadStack content
Fixes NPJH50624
2013-04-19 22:22:35 +08:00
Henrik Rydgård
16fa7bf494 Merge pull request #1288 from unknownbrackets/callbacks2
Make sceKernelNotifyCallback() error if invalid cb passed
2013-04-15 01:23:20 -07:00
Unknown W. Brackets
efd71e2444 Make sceKernelNotifyCallback() error if invalid cb.
Which makes Numblast clearly happy.
2013-04-14 23:45:46 -07:00
Unknown W. Brackets
e77647a394 Basically working implementation of TLS funcs.
But doesn't wait at all, which it should.
2013-04-14 16:36:02 -07:00
Unknown W. Brackets
a68798225a Give ThreadManForUser_8DAFF657 and friends a name.
Calling allocate on the same thread gives the same ptr, but on a different
one it waits or returns a new ptr.

Let's call it thread local storage for now.
2013-04-14 13:02:01 -07:00
Unknown W. Brackets
88b8df7b7b Add some missing stubs to threadman. 2013-04-14 12:52:10 -07:00
Unknown W. Brackets
fe97fd6fc5 Add better savestate error handling.
Aborts when it can't load.
2013-04-13 01:39:17 -07:00
Unknown W. Brackets
117ffaeb60 Include the git version in savestates.
This way we can provide better warnings when it fails to load.
2013-04-13 01:13:28 -07:00
Unknown W. Brackets
1f1560a9d6 Don't mark sceKernelExitThread() as an error.
Also, add some reporting and make the sceKernelCreateThread log message
shorter.
2013-04-09 23:23:10 -07:00
Unknown W. Brackets
6cbd1b5205 Fix typo, add back state to savestate. 2013-04-09 02:18:09 -07:00
Unknown W. Brackets
42b925a440 Initial stab at implementing some new memory funcs.
Borrowed from JPCSP, kept simple.  Need to do tests.
2013-04-07 20:57:53 -07:00
Unknown W. Brackets
0547d291e3 Avoid reusing uids for kernel objects.
This makes logs easier to read: a uid is an X is an X.  Usually.
Still sequential, and if it runs out, falls back.
2013-03-31 22:29:44 -07:00
Henrik Rydgård
1c31fb6ee4 Merge pull request #1071 from unknownbrackets/dispatch
Dispatch thread fixes
2013-03-25 00:58:37 -07:00
Unknown W. Brackets
658fa80c04 Don't wait on mutexes with dispatch disabled.
Fixes #339.
2013-03-25 00:07:44 -07:00
Unknown W. Brackets
276037675f Prevent waiting on semas while dispatch disabled.
Does relatively well on tests this way.
2013-03-24 23:30:32 -07:00
Henrik Rydgard
e8215b1e10 Report corrupt elfs (if reporting enabled). Some stubs. 2013-03-25 00:08:46 +01:00
Henrik Rydgard
84d292010a Oops, sceKernelCheckThreadStack was already implemented. Let's hope both copies are the same. 2013-03-23 14:41:13 +01:00
Henrik Rydgard
e20e5f49b9 Stub sceIoChstat and an icache invalidate function 2013-03-16 09:39:22 +01:00
Unknown W. Brackets
4f1d2f0584 Also clear the logging thread name on shutdown. 2013-03-11 00:18:59 -07:00
Unknown W. Brackets
9c6cfeeb26 Fix logging during savestate. 2013-03-10 23:52:11 -07:00
Unknown W. Brackets
db52d3d43c Quick and dirty attempt to delay loadmodule. 2013-03-07 22:45:58 -08:00
Henrik Rydgard
e7226a9716 Approximately rollback the last change to sceKernelReferThreadProfiler 2013-03-05 00:21:00 +01:00
Henrik Rydgard
3714eebbbe Actually register scePspNpDrm_user 2013-03-04 23:54:03 +01:00
Marcin Mikołajczyk
f406ad701c Fix sceKernelReferThreadProfiler types, implement scePowerGetPllClockFreqFloat 2013-03-04 23:39:59 +01:00
Henrik Rydgard
d4603136f0 Minor stuff: Fake-implement sceKernelReferThreadProfiler, make sure GPU frame dump logging gets output by not sending it to G3D. 2013-03-04 22:15:39 +01:00
Unknown W. Brackets
62ab4b7f51 More signed compare warnings. 2013-03-02 15:34:16 -08:00
Marcin Mikołajczyk
faa837ad15 Implement DoState in VTimer 2013-03-02 17:23:28 +01:00
Marcin Mikołajczyk
0a3bf01a9b VTimer implementation 2013-03-02 14:06:45 +01:00
Henrik Rydgard
ba0362d817 PGF font support. Mostly an adaptation and cleanup of JPCSP's font system. 2013-02-27 17:41:39 +01:00
Unknown W. Brackets
37dffb6210 Implement sceKernelReferLwMutexStatus() and ByID(). 2013-02-24 22:50:48 -08:00
vakko
02371b2949 DLC encryption 2013-02-24 19:27:37 +02:00
Unknown W. Brackets
411c711dac Initial sceKernelRotateThreadReadyQueue().
Might not be right but it's closer.
Makes games that call this func much faster.
2013-02-09 16:04:34 -08:00
Unknown W. Brackets
3ad565b4df Keep filehandles open properly when loading state. 2013-02-08 08:16:54 -08:00
Henrik Rydgård
7d6c113a97 Merge pull request #582 from raven02/master
Add few new stubs seen from Dragon Ball Z Tenkaichi Tag Team
2013-02-03 13:15:32 -08:00
Henrik Rydgard
3f0816cd05 Usec2Sysclock fixes 2013-02-03 22:14:19 +01:00
raven02
24c720892c Add few stubs seen from Dragon Ball Z Tenkaichi Tag Team 2013-02-04 03:19:55 +08:00
Marcin Mikołajczyk
4497252398 Wrap sceKernelTime functions 2013-02-03 16:33:01 +01:00
Unknown W. Brackets
ac8b35b2ef Optimize sysclock / sysclock 2 usec.
Legend of Heroes 1/2/3 call these a ton, making them quite slow.
Not sure if it's a bug, but they can be more optimal which'll make
it easier to debug anyway.
2013-02-02 20:42:16 -08:00
Unknown W. Brackets
0eaced4685 Track Atrac as a map and associate data. 2013-02-01 08:33:32 -08:00
raven02
9870de2600 Implement sceKernelDevkitVersion 2013-01-31 14:59:45 +08:00
Henrik Rydgard
0005fe1c5f Optional logging (ifdef) of cache calls for debugging 2013-01-22 22:03:40 +01:00
Henrik Rydgard
8d845cc588 quick implementation of sceKernelReferMutexStatus 2013-01-20 23:11:48 +01:00
raven02
b16a208453 Add __PsmfPlayerDoState(PointerWrap &p) to sceKernel 2013-01-20 16:24:49 +08:00
Unknown W. Brackets
76e693f674 Cleanup the other vpl functions. 2013-01-18 01:38:15 -08:00
Unknown W. Brackets
4c510b5649 Clean up sceKernelFreeVpl(), not waking yet. 2013-01-18 01:38:13 -08:00
Unknown W. Brackets
c8bb837996 Implement basic waiting for VPL allocation.
Always times out so far, though.
2013-01-18 01:38:13 -08:00
Unknown W. Brackets
373f1f8655 Cleanup sceKernelCreateVpl() and add warns/errors. 2013-01-18 01:38:11 -08:00
YaPeL
9cde301f4d Wrap functions on HLETables 2013-01-12 15:17:35 -03:00