will boot sysmenu when press reset button and again license stuff
authorBernhard Urban <lewurm@gmx.net>
Wed, 23 Sep 2009 15:37:20 +0000 (17:37 +0200)
committerBernhard Urban <lewurm@gmx.net>
Wed, 23 Sep 2009 15:37:20 +0000 (17:37 +0200)
exception.c
irq.c
irq.h
usb/core/core.c
usb/drivers/class/hid.c

index c1ccc9584bc0d40e27ed9343e49a7c51fe8fa59d..f42b78be2da341bf1f7eeef5aa477967bc82394b 100644 (file)
@@ -3,6 +3,8 @@
        Requires mini.
 
 Copyright (C) 2008             Segher Boessenkool <segher@kernel.crashing.org>
        Requires mini.
 
 Copyright (C) 2008             Segher Boessenkool <segher@kernel.crashing.org>
+Copyright (C) 2009             Bernhard Urban <lewurm@gmx.net>
+Copyright (C) 2009             Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
 
 # This code is licensed to you under the terms of the GNU GPL, version 2;
 # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
 
 # This code is licensed to you under the terms of the GNU GPL, version 2;
 # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
diff --git a/irq.c b/irq.c
index 5b0241c4087aada266fbf5ac489ec0d16c364401..1217ee2adecf7ec606e1bdd16ea595e2fd09c918 100644 (file)
--- a/irq.c
+++ b/irq.c
@@ -2,9 +2,8 @@
        ppcskel - a Free Software replacement for the Nintendo/BroadOn IOS.
        IRQ support
 
        ppcskel - a Free Software replacement for the Nintendo/BroadOn IOS.
        IRQ support
 
-Copyright (C) 2008, 2009       Hector Martin "marcan" <marcan@marcansoft.com>
-Copyright (C) 2008, 2009       Sven Peter <svenpeter@gmail.com>
-Copyright (C) 2009                     Andre Heider "dhewg" <dhewg@wiibrew.org>
+Copyright (C) 2009             Bernhard Urban <lewurm@gmx.net>
+Copyright (C) 2009             Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
 
 # This code is licensed to you under the terms of the GNU GPL, version 2;
 # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
 
 # This code is licensed to you under the terms of the GNU GPL, version 2;
 # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
@@ -15,6 +14,7 @@ Copyright (C) 2009                    Andre Heider "dhewg" <dhewg@wiibrew.org>
 #include "ipc.h"
 #include "bootmii_ppc.h"
 #include "usb/host/host.h"
 #include "ipc.h"
 #include "bootmii_ppc.h"
 #include "usb/host/host.h"
+#include "mini_ipc.h"
 
 void show_frame_no(void);
 
 
 void show_frame_no(void);
 
@@ -61,9 +61,9 @@ void irq_handler(void)
 
        if (flags & (1<<BW_PI_IRQ_RESET)) { 
                write32(BW_PI_IRQFLAG, 1<<BW_PI_IRQ_RESET);
 
        if (flags & (1<<BW_PI_IRQ_RESET)) { 
                write32(BW_PI_IRQFLAG, 1<<BW_PI_IRQ_RESET);
-               show_frame_no();
-               printf("IRQ-BW RESET\n");
+               boot2_run(1,2); //sysmenu
        }
        }
+
        if (flags & (1<<BW_PI_IRQ_HW)) { //HW-PIC IRQ
                u32 hw_enabled = read32(HW_PPCIRQMASK);
                u32 hw_flags = read32(HW_PPCIRQFLAG);
        if (flags & (1<<BW_PI_IRQ_HW)) { //HW-PIC IRQ
                u32 hw_enabled = read32(HW_PPCIRQMASK);
                u32 hw_flags = read32(HW_PPCIRQFLAG);
diff --git a/irq.h b/irq.h
index 9d6a666975fb94b78456b24b7c57e59d828e8a9b..2e09926b2710405822940383e86f025ed872c752 100644 (file)
--- a/irq.h
+++ b/irq.h
@@ -1,3 +1,14 @@
+/*
+       ppcskel - a Free Software replacement for the Nintendo/BroadOn IOS.
+       IRQ support
+
+Copyright (C) 2009             Bernhard Urban <lewurm@gmx.net>
+Copyright (C) 2009             Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
+
+# This code is licensed to you under the terms of the GNU GPL, version 2;
+# see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
+*/
+
 #ifndef __IRQ_H__
 #define __IRQ_H__
 
 #ifndef __IRQ_H__
 #define __IRQ_H__
 
index 82512b0ca37a3e4cb9ecbf1dd7c48b2e507fa442..889fba452ba63d9148c88a5c4f427ba13d0d85d2 100644 (file)
@@ -121,7 +121,7 @@ struct usb_device *usb_add_device(u8 lowspeed, u32 reg)
                return (void*) -1;
        }
 
                return (void*) -1;
        }
 
-//#define WTF
+#define WTF
 #ifdef WTF
        printf("lololololool PADDING WTF :O lolololololo \n");
        printf("lolololool PADDING WTF :O lolololololo \n");
 #ifdef WTF
        printf("lololololool PADDING WTF :O lolololololo \n");
        printf("lolololool PADDING WTF :O lolololololo \n");
index ebf9f2621b11fc62ac0827ac2a5862adb5465009..60d3a4db118b0283b134ced18ccd086b98aa8c84 100644 (file)
@@ -29,7 +29,6 @@ void usb_hidkb_init()
        usb_register_driver(&hidkb);
 }
 
        usb_register_driver(&hidkb);
 }
 
-
 void usb_hidkb_probe()
 {
        struct usb_device *dev;
 void usb_hidkb_probe()
 {
        struct usb_device *dev;
@@ -41,8 +40,6 @@ void usb_hidkb_probe()
                if(dev->conf->intf->bInterfaceClass == HID_CLASSCODE &&
                                dev->conf->intf->bInterfaceSubClass == 1 && /* keyboard support boot protocol? */
                                dev->conf->intf->bInterfaceProtocol == 1) { /* keyboard? */
                if(dev->conf->intf->bInterfaceClass == HID_CLASSCODE &&
                                dev->conf->intf->bInterfaceSubClass == 1 && /* keyboard support boot protocol? */
                                dev->conf->intf->bInterfaceProtocol == 1) { /* keyboard? */
-
-
                        hidkb.data = (void*) dev;
                }
 
                        hidkb.data = (void*) dev;
                }
 
@@ -50,7 +47,6 @@ void usb_hidkb_probe()
        }
 }
 
        }
 }
 
-
 void usb_hidkb_check()
 {
 }
 void usb_hidkb_check()
 {
 }