Make HW trap reflection more arch-independent
[akaros.git] / user / parlib / include / x86 / trap.h
index 07e580c..541fd04 100644 (file)
 
 __BEGIN_DECLS
 
+#define HW_TRAP_DIV_ZERO               0
+#define HW_TRAP_GP_FAULT               13
+#define HW_TRAP_PAGE_FAULT             14
+
 static bool has_refl_fault(struct user_context *ctx)
 {
        switch (ctx->type) {