summaryrefslogtreecommitdiff
path: root/410kern/x86/misc.h
diff options
context:
space:
mode:
Diffstat (limited to '410kern/x86/misc.h')
-rw-r--r--410kern/x86/misc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/410kern/x86/misc.h b/410kern/x86/misc.h
new file mode 100644
index 0000000..2956a3d
--- /dev/null
+++ b/410kern/x86/misc.h
@@ -0,0 +1,13 @@
+#ifndef _X86_MISC_H_
+#define _X86_MISC_H_
+
+/* FIXME! This file is full of things that need better homes. */
+
+ /** @brief #PF thrown from user code */
+#define PF_ERRCODE_USER 0x4
+ /** @brief #PF thrown due to write error */
+#define PF_ERRCODE_WRITE 0x2
+ /** @brief #PF thrown due to protection error */
+#define PF_ERRCODE_PROT 0x1
+
+#endif