#include "bootmii_ppc.h"
#include "string.h"
+#include "irq.h"
+#include "hollywood.h"
extern char exception_2200_start, exception_2200_end;
void exception_handler(int exception)
{
+ // check if the exception was actually an interrupt
+ if (exception == 0x500) {
+ u32 cookie = irq_kill();
+ irq_handler();
+ irq_restore(cookie);
+ return;
+ }
+
+ // check if exception happened due to the decrementer
+ if (exception == 0x900) {
+ printf("\nDecrementer exception occured - who cares?\n");
+ return;
+ }
+
u32 *x;
u32 i;