summaryrefslogtreecommitdiff
path: root/i386/util/idt_inittab.S
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-02-20 20:59:40 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:35 +0200
commit44b9d528984254f021865f65c0e7749f3d9d97f4 (patch)
treef5ec614b22fbc343c4d2de22473f77266c18d7c8 /i386/util/idt_inittab.S
parentb3d4954f3269685d4200149e7334cdcdc935c287 (diff)
2006-02-20 Thomas Schwinge <tschwinge@gnu.org>
Remove unused and unsupported code. Consult the file `DEVELOPMENT' for details. Partly based on suggestions by Gianluca Guida <glguida@gmail.com>. * i386/util/NOTES: Remove file. * i386/util/anno.c: Likewise. * i386/util/anno.h: Likewise. * i386/util/cpu.h: Likewise. * i386/util/cpu_subs.h: Likewise. * i386/util/cpu_tables_init.c: Likewise. * i386/util/cpu_tables_load.c: Likewise. * i386/util/crtn.S: Likewise. * i386/util/debug.h: Likewise. * i386/util/gdt.c: Likewise. * i386/util/gdt.h: Likewise. * i386/util/gdt_sels.h: Likewise. * i386/util/i16/debug.h: Likewise. * i386/util/i16/i16.h: Likewise. * i386/util/i16/i16_die.c: Likewise. * i386/util/i16/i16_gdt_init_temp.c: Likewise. * i386/util/i16/i16_nanodelay.c: Likewise. * i386/util/i16/i16_puts.c: Likewise. * i386/util/i16/i16_writehex.c: Likewise. * i386/util/i386_asm.sym: Likewise. * i386/util/idt.c: Likewise. * i386/util/idt.h: Likewise. * i386/util/idt_inittab.S: Likewise. * i386/util/idt_inittab.h: Likewise. * i386/util/ldt.h: Likewise. * i386/util/trap.h: Likewise. * i386/util/trap_asm.sym: Likewise. * i386/util/trap_dump.c: Likewise. * i386/util/trap_dump_die.c: Likewise. * i386/util/trap_handler.S: Likewise. * i386/util/trap_return.S: Likewise. * i386/util/tss.c: Likewise. * i386/util/tss.h: Likewise. * i386/util/tss_dump.c: Likewise. * i386/util/vm_param.h: Likewise.
Diffstat (limited to 'i386/util/idt_inittab.S')
-rw-r--r--i386/util/idt_inittab.S128
1 files changed, 0 insertions, 128 deletions
diff --git a/i386/util/idt_inittab.S b/i386/util/idt_inittab.S
deleted file mode 100644
index 3fc6b5c..0000000
--- a/i386/util/idt_inittab.S
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * Mach Operating System
- * Copyright (c) 1993,1992,1991,1990 Carnegie Mellon University
- * Copyright (c) 1991 IBM Corporation
- * All Rights Reserved.
- *
- * Permission to use, copy, modify and distribute this software and its
- * documentation is hereby granted, provided that both the copyright
- * notice and this permission notice appear in all copies of the
- * software, derivative works or modified versions, and any portions
- * thereof, and that both notices appear in supporting documentation,
- * and that the nema IBM not be used in advertising or publicity
- * pertaining to distribution of the software without specific, written
- * prior permission.
- *
- * CARNEGIE MELLON AND IBM ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS IS"
- * CONDITION. CARNEGIE MELLON AND IBM DISCLAIM ANY LIABILITY OF ANY KIND FOR
- * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
- * Carnegie Mellon requests users of this software to return to
- *
- * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
- * School of Computer Science
- * Carnegie Mellon University
- * Pittsburgh PA 15213-3890
- *
- * any improvements or extensions that they make and grant Carnegie Mellon
- * the rights to redistribute these changes.
- */
-
-#include <mach/machine/asm.h>
-#include <mach/machine/eflags.h>
-#include <mach/machine/trap.h>
-#include <mach/machine/seg.h>
-
-#include "trap.h"
-#include "idt_inittab.h"
-#include "debug.h"
-
-/*
- * This is a default idt_inittab
- * that simply invokes panic_trap on any trap.
- * All gates are interrupt gates,
- * so that interrupts will be immediately turned off.
- */
-
-
-/*
- * No error code. Clear error code and push trap number.
- */
-#define EXCEPTION(n,name) \
- IDT_ENTRY(n,EXT(name),ACC_PL_K|ACC_INTR_GATE);\
-ENTRY(name) ;\
- pushl $(0) ;\
- pushl $(n) ;\
- jmp alltraps
-
-/*
- * User-accessible exception. Otherwise, same as above.
- */
-#define EXCEP_USR(n,name) \
- IDT_ENTRY(n,EXT(name),ACC_PL_U|ACC_INTR_GATE);\
-ENTRY(name) ;\
- pushl $(0) ;\
- pushl $(n) ;\
- jmp alltraps
-
-/*
- * Error code has been pushed. Just push trap number.
- */
-#define EXCEP_ERR(n,name) \
- IDT_ENTRY(n,EXT(name),ACC_PL_K|ACC_INTR_GATE);\
-ENTRY(name) ;\
- pushl $(n) ;\
- jmp alltraps
-
-/*
- * Special interrupt code: dispatches to a unique entrypoint,
- * not defined automatically here.
- */
-#define EXCEP_SPC(n,name) \
- IDT_ENTRY(n,EXT(name),ACC_PL_K|ACC_INTR_GATE)
-
-
-IDT_INITTAB_BEGIN
-
-EXCEPTION(0x00,t_zero_div)
-EXCEPTION(0x01,t_debug)
-EXCEP_USR(0x03,t_int3)
-EXCEP_USR(0x04,t_into)
-EXCEP_USR(0x05,t_bounds)
-EXCEPTION(0x06,t_invop)
-EXCEPTION(0x07,t_nofpu)
-EXCEPTION(0x08,a_dbl_fault)
-EXCEPTION(0x09,a_fpu_over)
-EXCEP_ERR(0x0a,a_inv_tss)
-EXCEP_ERR(0x0b,t_segnp)
-EXCEP_ERR(0x0c,t_stack_fault)
-EXCEP_ERR(0x0d,t_gen_prot)
-EXCEP_ERR(0x0e,t_page_fault)
-EXCEPTION(0x0f,t_trap_0f)
-EXCEPTION(0x10,t_fpu_err)
-EXCEPTION(0x11,t_trap_11)
-EXCEPTION(0x12,t_trap_12)
-EXCEPTION(0x13,t_trap_13)
-EXCEPTION(0x14,t_trap_14)
-EXCEPTION(0x15,t_trap_15)
-EXCEPTION(0x16,t_trap_16)
-EXCEPTION(0x17,t_trap_17)
-EXCEPTION(0x18,t_trap_18)
-EXCEPTION(0x19,t_trap_19)
-EXCEPTION(0x1a,t_trap_1a)
-EXCEPTION(0x1b,t_trap_1b)
-EXCEPTION(0x1c,t_trap_1c)
-EXCEPTION(0x1d,t_trap_1d)
-EXCEPTION(0x1e,t_trap_1e)
-EXCEPTION(0x1f,t_trap_1f)
-
-IDT_INITTAB_END
-
-alltraps:
- pusha
- pushl %ds
- pushl %es
- pushl %fs
- pushl %gs
- jmp EXT(trap_handler)
-