Creating an user thread from a module

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Cpasjuste
Posts: 214
Joined: Sun May 29, 2005 8:28 am

Creating an user thread from a module

Post by Cpasjuste »

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: Select all

	thid = sceKernelCreateThread("net_thread", net_thread, 0x18, 0x10000, 0 NULL);
	if&#40;thid < 0&#41;
	&#123;
		printf&#40;"Error, could not create thread\n"&#41;;
		sceKernelSleepThread&#40;&#41;;
	&#125;

	sceKernelStartThread&#40;thid, 0, NULL&#41;;
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 !
Post Reply