Commit Graph
139 Commits
Author SHA1 Message Date
Unknown W. Brackets 76dfbc7436 Clear tls blocks before alloc and after free.
The PSP actually does both, so let's do it too.
2015-02-21 15:50:16 -08:00
Unknown W. Brackets abd03bd597 Fix size handling in sceKernelReferTlsplStatus(). 2015-02-21 15:50:16 -08:00
Unknown W. Brackets baca1ab901 Handle other threads properly when deleting tlspls. 2015-02-21 15:50:15 -08:00
Unknown W. Brackets f52cb71300 Use an aligned blocksize for TLS. 2015-02-21 15:50:15 -08:00
Unknown W. Brackets dd07a0596b Free TLS on thread end.
PSP does this so we should too.  Not yet cleaning up completely.
2015-02-21 15:50:14 -08:00
Lioncash cac632424c Core: Add missing override specifiers 2014-12-08 15:20:31 -05:00
Lioncash 4ccb838306 Core: Mark some module functions as static 2014-12-08 04:40:08 -05:00
Lioncash f830d5dec7 Core: Mark some functions as const 2014-12-03 15:16:11 -05:00
Henrik Rydgard f84ebf6bff sprintf->snprintf, fix some too short buffers 2014-09-14 00:14:11 +02:00
Unknown W. Brackets 84231c0188 Eat some cycles when canceling/deleting fpls.
Improves tests measuing timeouts remaining after delete.
2014-09-01 21:11:41 -07:00
Unknown W. Brackets abacba4e31 Clarify some module loading code. 2014-08-17 14:26:00 -07:00
Unknown W. Brackets f864b6be63 Allocate 0x4000 at the bottom like real firmware.
Should fix #4056.
2014-08-17 14:25:59 -07:00
Unknown W. Brackets 0a33eb4c42 Fix missing log semicolons only affecting logging. 2014-06-29 19:09:39 -07:00
Unknown W. Brackets 4471b968e8 Increase timeout delay time for waits.
Had previously had these lower, but my testing was biased by how quick
other things in ppsspp were.
2014-06-27 00:58:59 -07:00
raven02 9806b46586 Fix space issues 2014-04-28 15:30:32 +08:00
raven02 e9815052f1 Stub SysMemUserForUser_ACBD88CA/945E45DA 2014-04-27 23:20:18 +08:00
Unknown W. Brackets 542d04a96f Add support in sceKernelPrintf for %p. 2014-03-23 08:14:50 -07:00
Unknown W. Brackets 05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
lioncash b9886942a7 Fix some vertical alignments in misc Core source files. 2014-03-03 11:16:53 -05:00
Unknown W. Brackets 6c7c63c2af Log the sdk/compiler version under debug.
We weren't logging it at all before.
2014-02-16 09:20:00 -08:00
Unknown W. Brackets b4db1e6941 Stop reporting SMALLEST vpl priority.
It's supported now.
2014-02-06 00:04:56 -08:00
Unknown W. Brackets 06bd06d030 In FIFO, wake the next waiting thread on timeout.
It may have been blocking the queue waiting for a larger size.
2014-02-02 13:32:50 -08:00
Unknown W. Brackets c9652bab46 Block vpl fifo allocations to, not just wakes. 2014-02-02 10:17:26 -08:00
Unknown W. Brackets 7e565a5838 For FIFO vpls, block threads in order.
Even for a smaller size later in the fifo queue.
2014-02-02 10:15:11 -08:00
Unknown W. Brackets ecdffabf26 Correct some vpl allocation logic.
Tricky.  This makes more tests pass, seems right.
2014-02-02 08:13:41 -08:00
Unknown W. Brackets 4cec22823f Implement the PSP's VPL allocation method.
May help some games which hit allocation / free errors.  VPLs are not
common.

May improve performance in games using VPLs heavily, like Pangya.
2014-02-02 07:46:22 -08:00
Unknown W. Brackets 5e4a076798 Typo. 2014-01-31 09:41:29 -08:00
Unknown W. Brackets fb689b45f1 Spelling fix. 2014-01-30 22:49:30 -08:00
Unknown W. Brackets 850d640f42 Correct return values, validation in sdkver funcs.
I am unable to reproduce any validation, so these changes make it match
tests on a PSP.  But then, maybe it's my custom firmware getting in the
way?  Added reporting to see the effect better.
2014-01-30 22:13:59 -08:00
Unknown W. Brackets be55be7dcb Fix some formatting warnings. 2013-12-29 16:08:06 -08:00
Henrik Rydgård 79ff2f0ba8 Start untangling our include mess a little. 2013-12-29 23:34:45 +01:00
Unknown W. Brackets 6816bb9948 Allow memblocks to be used with partition funcs.
It seems that the uids are interchangeable.  Probably won't matter, but
now they have proper uids.
2013-12-26 21:00:17 -08:00
Henrik Rydgard 32f479b0a6 Assorted log spam reductions.
Also let Java know of some important events. Not used for anything yet.
2013-12-04 17:43:00 +01:00
Unknown W. Brackets e73d43c434 Correct sceKernelTlspl func names, etc.
This is mostly pedantic but it's nice to have the right names.
2013-12-02 23:40:16 -08:00
Unknown W. Brackets a72340255f Support %X and %x in sceKernelPrintf(). 2013-10-01 08:00:08 -07:00
Unknown W. Brackets 50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Unknown W. Brackets 281685fd43 Fix minor scheduling issues in the vpl test. 2013-09-09 01:05:38 -07:00
Unknown W. Brackets be468af52d Refactor waiting thread removal. 2013-09-09 00:22:00 -07:00
Unknown W. Brackets 4bd391b098 Refactor waiting thread cleanup. 2013-09-09 00:22:00 -07:00
Henrik Rydgard 8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
Unknown W. Brackets f35b164d11 Refactor wait verification a bit in kernel waits. 2013-09-07 10:54:00 -07:00
Unknown W. Brackets 543df7ca7a Refactor wait timeouts.
Also, make them not write the timeout ptr if the thread stopped waiting.
Feels safer.
2013-09-03 22:32:22 -07:00
Unknown W. Brackets b20bb3b609 Refactor down the begin/end callback stuff. 2013-09-03 01:21:52 -07:00
Unknown W. Brackets 1bf974aff6 Implement VPL/FPL callback handlers.
Smells like time to refactor, there are less differences than I expected.
2013-09-03 01:21:51 -07:00
Unknown W. Brackets 686d893d5c Return more correct errors inside interrupts. 2013-08-28 22:35:06 -07:00
Unknown W. Brackets 61fae4e920 Return proper errors while dispatch disabled.
In at least the majority of waits.
2013-08-27 23:55:37 -07:00
Unknown W. Brackets 354dbfec6c Improve some reporting of options structs. 2013-08-25 16:43:47 -07:00
Unknown W. Brackets 18832f3ca7 Wrap sceKernelFreeFpl() and use better errors. 2013-08-25 16:38:49 -07:00
Unknown W. Brackets 6c6aa1b8ee Wrap sceKernelAllocateFpl() and friends. 2013-08-25 16:38:49 -07:00
Unknown W. Brackets 61e240f482 Allocate fpl blocks in a ring, like the PSP. 2013-08-25 16:38:48 -07:00