#if PLATFORM_is_realview_pb
# define UART0_PADDR 0x10009000 // Realview
+# define UART0_IRQ 12 // IRQ 12
# define GICI_PADDR 0x1e000000
# define GICD_PADDR 0x1e001000
# define PL110_BASE 0x10020000 // Integrator
#if PLATFORM_is_tegra2 // Tegra2
# define UART0_PADDR 0x70006000
+# define UART0_IRQ 0
# define GICD_PADDR 0x50041000
# define GICI_PADDR 0x50040100
//# define PL110_BASE 0x10020000 // Integrator
#include <acess.h>
#include <modules.h>
+#include "include/options.h"
// === IMPORTS ===
extern void Interrupts_Setup(void);
extern void Threads_Init(void);
extern void System_Init(const char *Commandline);
extern void Time_Setup(void);
+extern void Debug_int_SerialIRQHandler(int IRQ, void *unused);
// === PROTOTYPES ===
int kmain(void);
// Boot modules?
// - most ARMv7 configs use a GIC
Module_EnsureLoaded("armv7_GIC");
+ IRQ_AddHandler(UART0_IRQ, Debug_int_SerialIRQHandler, NULL);
Time_Setup();