toolchain bugged now!!!

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

Moderators: cheriff, TyRaNiD

Post Reply
Cy-4AH
Posts: 44
Joined: Wed Jan 31, 2007 9:58 pm
Location: Belarus

toolchain bugged now!!!

Post by Cy-4AH »

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.
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

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 :)
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

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
PeterM
Posts: 125
Joined: Sat Dec 31, 2005 7:25 pm
Location: Edinburgh, UK
Contact:

Post by PeterM »

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.
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

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
Cy-4AH
Posts: 44
Joined: Wed Jan 31, 2007 9:58 pm
Location: Belarus

Post by Cy-4AH »

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
Post Reply