X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/3116da4b2f512f121bfc7b89e948de25a7daf2cc..33e49b2e6d599bc56326841b5b373b9f76adc5f7:/netwatch/traps.h?ds=sidebyside diff --git a/netwatch/traps.h b/netwatch/traps.h new file mode 100644 index 0000000..f57e036 --- /dev/null +++ b/netwatch/traps.h @@ -0,0 +1,27 @@ +#ifndef TRAPS_H +#define TRAPS_H + +/* Trap vectors from 15-410 basis code. */ + +#define T_DIVIDE_ERROR 0 +#define T_DEBUG 1 +#define T_NMI 2 +#define T_INT3 3 +#define T_OVERFLOW 4 +#define T_OUT_OF_BOUNDS 5 +#define T_INVALID_OPCODE 6 +#define T_NO_FPU 7 +#define T_DOUBLE_FAULT 8 +#define T_FPU_FAULT 9 +#define T_INVALID_TSS 10 +#define T_SEGMENT_NOT_PRESENT 11 +#define T_STACK_FAULT 12 +#define T_GENERAL_PROTECTION 13 +#define T_PAGE_FAULT 14 +#define T_FLOATING_POINT_ERROR 16 +#define T_ALIGNMENT_CHECK 17 +#define T_MACHINE_CHECK 18 + +void traps_install(void); + +#endif /* TRAPS_H */