Index: arch/ia64/src/cpu/cpu.c
===================================================================
--- arch/ia64/src/cpu/cpu.c	(revision cd95d7841b3abc438711416dfdf6551b51f15bb4)
+++ arch/ia64/src/cpu/cpu.c	(revision cd95d7841b3abc438711416dfdf6551b51f15bb4)
@@ -0,0 +1,36 @@
+#include <cpu.h>
+#include <print.h>
+#include <panic.h>
+
+extern int IVT;
+
+
+
+
+void cpu_arch_init(void)
+{
+
+
+
+    int *p=&IVT;
+
+
+	__asm__ (
+		"mov r15 = %0;;"
+		"mov cr2 = r15;;"
+		: 
+		: "r" (p)
+		: "r15"
+	);
+
+}
+
+
+void gugux_pokus(void);
+void gugux_pokus(void)
+{
+    panic("\n\nGUGUX Exception\n\n");
+}
+
+
+
Index: arch/ia64/src/dummy.s
===================================================================
--- arch/ia64/src/dummy.s	(revision 9756131fa15f66c8ed4bfc1d5fccfc9dab372985)
+++ arch/ia64/src/dummy.s	(revision cd95d7841b3abc438711416dfdf6551b51f15bb4)
@@ -34,5 +34,4 @@
 .global before_thread_runs_arch
 .global arch_late_init
-.global cpu_arch_init
 .global cpu_identify
 .global cpu_print_report
@@ -50,5 +49,4 @@
 asm_delay_loop:
 arch_late_init:
-cpu_arch_init:
 cpu_identify:
 cpu_print_report:
Index: arch/ia64/src/interrupt_handler.c
===================================================================
--- arch/ia64/src/interrupt_handler.c	(revision cd95d7841b3abc438711416dfdf6551b51f15bb4)
+++ arch/ia64/src/interrupt_handler.c	(revision cd95d7841b3abc438711416dfdf6551b51f15bb4)
@@ -0,0 +1,47 @@
+/*
+ * Copyright (C) 2005 Jakub Vana
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ *   notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ *   notice, this list of conditions and the following disclaimer in the
+ *   documentation and/or other materials provided with the distribution.
+ * - The name of the author may not be used to endorse or promote products
+ *   derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+
+#include <panic.h>
+
+
+void general_exception(void);
+void general_exception(void)
+{
+    panic("\nGeneral Exception\n");
+}
+
+
+
+void break_instruction(void);
+void break_instruction(void)
+{
+    panic("\nBreak Instruction\n");
+}
+
Index: arch/ia64/src/ivt.S
===================================================================
--- arch/ia64/src/ivt.S	(revision cd95d7841b3abc438711416dfdf6551b51f15bb4)
+++ arch/ia64/src/ivt.S	(revision cd95d7841b3abc438711416dfdf6551b51f15bb4)
@@ -0,0 +1,49 @@
+#
+# Copyright (C) 2005 Jakub Vana
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# - Redistributions of source code must retain the above copyright
+#   notice, this list of conditions and the following disclaimer.
+# - Redistributions in binary form must reproduce the above copyright
+#   notice, this list of conditions and the following disclaimer in the
+#   documentation and/or other materials provided with the distribution.
+# - The name of the author may not be used to endorse or promote products
+#   derived from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+
+
+.macro Handler o h
+.org IVT + \o
+br \h;;
+.endm
+
+
+
+.global IVT
+.align 32768
+IVT:
+
+Handler 0x2c00 break_instruction
+Handler 0x5400 general_exception
+
+
+
+
+.align 32768
+.byte 0
