| 18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 |
*/ |
*/ |
| 20 |
#include "exec.h" |
#include "exec.h" |
|
#if defined (USE_OPEN_FIRMWARE) |
|
|
#include <time.h> |
|
|
#include "of.h" |
|
|
#endif |
|
| 21 |
|
|
| 22 |
//#define DEBUG_MMU |
//#define DEBUG_MMU |
| 23 |
//#define DEBUG_BATS |
//#define DEBUG_BATS |
| 684 |
} |
} |
| 685 |
/* Generate informations in save/restore registers */ |
/* Generate informations in save/restore registers */ |
| 686 |
switch (excp) { |
switch (excp) { |
|
case EXCP_OFCALL: |
|
|
#if defined (USE_OPEN_FIRMWARE) |
|
|
env->gpr[3] = OF_client_entry((void *)env->gpr[3]); |
|
|
#endif |
|
|
return; |
|
|
case EXCP_RTASCALL: |
|
|
#if defined (USE_OPEN_FIRMWARE) |
|
|
printf("RTAS call !\n"); |
|
|
env->gpr[3] = RTAS_entry((void *)env->gpr[3]); |
|
|
printf("RTAS call done\n"); |
|
|
#endif |
|
|
return; |
|
| 687 |
case EXCP_NONE: |
case EXCP_NONE: |
| 688 |
/* Do nothing */ |
/* Do nothing */ |
| 689 |
#if defined (DEBUG_EXCEPTIONS) |
#if defined (DEBUG_EXCEPTIONS) |