forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

toolchain bugged now!!!

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Cy-4AH



Joined: 31 Jan 2007
Posts: 44
Location: Belarus

PostPosted: Thu Apr 05, 2007 7:09 pm    Post subject: toolchain bugged now!!! Reply with quote

I don't know what happend with toolchain, but yesterday at night I reinstalled toolchain and now have problem:
All my programms with PSP_MODULE_KERNEL suddenly can't exit by pressing home button. Message Box appear, but I can't choose 'Yes', I can only choose 'No' or press Cancel-button.
In PSP_MODULE_USER all is ok.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Thu Apr 05, 2007 10:20 pm    Post subject: Reply with quote

Obviously that isn't a massive amount to go on. Exit Game doesn't work if you have a kernel thread being prempted to handle the exit callback. Though strange that it is only happening now :)
Back to top
View user's profile Send private message
be2003



Joined: 20 Apr 2006
Posts: 144

PostPosted: Fri Apr 06, 2007 1:00 pm    Post subject: Reply with quote

are you using PSP_MAIN_THREAD_ATTR(0);? in your main file?
that caused the same problem in my application...

when i use PSP_MAIN_THREAD_ATTR(0); the game can only exit through the home button if SetupCallbacks() is called in a usermode thread

when i dont use PSP_MAIN_THREAD_ATTR(0); it works just fine in my main kernel mode thread
_________________
- be2003
blog
Back to top
View user's profile Send private message
PeterM



Joined: 31 Dec 2005
Posts: 125
Location: Edinburgh, UK

PostPosted: Sun Apr 08, 2007 2:30 am    Post subject: Reply with quote

I had the same thing happen while working on Quake. As far as I know (may be wrong) it only happened to me after switching to an OE firmware.

Making the callback thread run in user mode fixed it for me too.
_________________
http://aaiiee.wordpress.com/

I can no longer do any homebrew PSP development nor discuss PSP specific topics.
Back to top
View user's profile Send private message Visit poster's website
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Sun Apr 08, 2007 9:03 am    Post subject: Reply with quote

yes i had this problem long ago as i always debug
apps in kernel mode ...you definitely need to call your
home button callback function from a user level thread
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
Cy-4AH



Joined: 31 Jan 2007
Posts: 44
Location: Belarus

PostPosted: Sun Apr 08, 2007 10:24 pm    Post subject: Reply with quote

But without PSP_MAIN_THREAD_ATTR(0); some kernel-functions doesn't work.
Btw, in toolchain.sh I see support of newlib-1.15.0 and gcc-4.1.0. Am I need to change in toolchain.sh
GCC="gcc-4.0.2"
NEWLIB="newlib-1.13.0"
to
GCC="gcc-4.1.0"
NEWLIB="newlib-1.15.0"
It's doesn't mentioned in Readme.txt
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group