Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Tue Jan 16, 2007 5:19 am Post subject: Creating an user thread from a module |
|
|
Hello,
I have searched a long time this afternoon and test a lot of things to create and start a thread in the user memory, without success.
A code like this one work great but load into kernel memory
| Code: |
thid = sceKernelCreateThread("net_thread", net_thread, 0x18, 0x10000, 0 NULL);
if(thid < 0)
{
printf("Error, could not create thread\n");
sceKernelSleepThread();
}
sceKernelStartThread(thid, 0, NULL);
|
If i try to change the 0 to "PSP_THREAD_ATTR_USER" to load it in user space, the psp just hang.
Is it possible to load a user thread or kernel thread that load in userspace from a prx module ? Thanks in advance for any help ! |
|