| View previous topic :: View next topic |
| Author |
Message |
Cy-4AH
Joined: 31 Jan 2007 Posts: 44 Location: Belarus
|
Posted: Thu Apr 05, 2007 7:09 pm Post subject: toolchain bugged now!!! |
|
|
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 |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Thu Apr 05, 2007 10:20 pm Post subject: |
|
|
| 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 |
|
 |
be2003
Joined: 20 Apr 2006 Posts: 144
|
Posted: Fri Apr 06, 2007 1:00 pm Post subject: |
|
|
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 |
|
 |
PeterM
Joined: 31 Dec 2005 Posts: 125 Location: Edinburgh, UK
|
Posted: Sun Apr 08, 2007 2:30 am Post subject: |
|
|
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 |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Sun Apr 08, 2007 9:03 am Post subject: |
|
|
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 |
|
 |
Cy-4AH
Joined: 31 Jan 2007 Posts: 44 Location: Belarus
|
Posted: Sun Apr 08, 2007 10:24 pm Post subject: |
|
|
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 |
|
 |
|