Module Name:    src
Committed By:   reinoud
Date:           Sat Jul 28 20:26:13 UTC 2018

Added Files:
        src/sys/arch/usermode/include: trap.h

Log Message:
Provide hand-doctored redirection of trap.h in preparation for ddb/kgdb


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/trap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/sys/arch/usermode/include/trap.h
diff -u /dev/null src/sys/arch/usermode/include/trap.h:1.1
--- /dev/null	Sat Jul 28 20:26:13 2018
+++ src/sys/arch/usermode/include/trap.h	Sat Jul 28 20:26:13 2018
@@ -0,0 +1,19 @@
+/* $NetBSD: trap.h,v 1.1 2018/07/28 20:26:13 reinoud Exp $ */
+
+/*
+ * Handcrafted redirect to prevent problems with i386 and x86_64 sharing x86
+ */
+#ifndef _USERMODE_TRAP_H
+#define _USERMODE_TRAP_H
+
+#if defined(__i386__)
+#include "../../x86/include/trap.h"
+#elif defined(__x86_64__)
+#include "../../x86/include/trap.h"
+#elif defined(__arm__)
+#include "../../arm/include/trap.h"
+#else
+#error port me
+#endif
+
+#endif

Reply via email to