aboutsummaryrefslogtreecommitdiff
path: root/i386/util/trap.h
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/trap.h
parentb3d4954f3269685d4200149e7334cdcdc935c287 (diff)
downloadgnumach-44b9d528984254f021865f65c0e7749f3d9d97f4.tar.gz
gnumach-44b9d528984254f021865f65c0e7749f3d9d97f4.tar.bz2
gnumach-44b9d528984254f021865f65c0e7749f3d9d97f4.zip
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/trap.h')
-rw-r--r--i386/util/trap.h100
1 files changed, 0 insertions, 100 deletions
diff --git a/i386/util/trap.h b/i386/util/trap.h
deleted file mode 100644
index 98d586c3..00000000
--- a/i386/util/trap.h
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Mach Operating System
- * Copyright (c) 1991,1990,1989 Carnegie Mellon University.
- * Copyright (c) 1994 The University of Utah and
- * the Center for Software Science (CSS).
- * 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.
- *
- * CARNEGIE MELLON, THE UNIVERSITY OF UTAH AND CSS ALLOW FREE USE OF
- * THIS SOFTWARE IN ITS "AS IS" CONDITION, AND 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.
- */
-#ifndef _I386_MOSS_TRAP_H_
-#define _I386_MOSS_TRAP_H_
-
-#ifndef ASSEMBLER
-
-
-/* This structure corresponds to the state of user registers
- as saved upon kernel trap/interrupt entry.
- As always, it is only a default implementation;
- a well-optimized microkernel will probably want to override it
- with something that allows better optimization. */
-
-struct trap_state {
-
- /* Saved segment registers */
- unsigned int gs;
- unsigned int fs;
- unsigned int es;
- unsigned int ds;
-
- /* PUSHA register state frame */
- unsigned int edi;
- unsigned int esi;
- unsigned int ebp;
- unsigned int cr2; /* we save cr2 over esp for page faults */
- unsigned int ebx;
- unsigned int edx;
- unsigned int ecx;
- unsigned int eax;
-
- unsigned int trapno;
- unsigned int err;
-
- /* Processor state frame */
- unsigned int eip;
- unsigned int cs;
- unsigned int eflags;
- unsigned int esp;
- unsigned int ss;
-
- /* Virtual 8086 segment registers */
- unsigned int v86_es;
- unsigned int v86_ds;
- unsigned int v86_fs;
- unsigned int v86_gs;
-};
-
-/* The actual trap_state frame pushed by the processor
- varies in size depending on where the trap came from. */
-#define TR_KSIZE ((int)&((struct trap_state*)0)->esp)
-#define TR_USIZE ((int)&((struct trap_state*)0)->v86_es)
-#define TR_V86SIZE sizeof(struct trap_state)
-
-
-#else ASSEMBLER
-
-#include <mach/machine/asm.h>
-
-#define UNEXPECTED_TRAP \
- movw %ss,%ax ;\
- movw %ax,%ds ;\
- movw %ax,%es ;\
- movl %esp,%eax ;\
- pushl %eax ;\
- call EXT(trap_dump_die) ;\
-
-
-#endif ASSEMBLER
-
-#include <mach/machine/trap.h>
-
-#endif _I386_MOSS_TRAP_H_