Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/usermode/include Provide hand-doctored redirection ...



details:   https://anonhg.NetBSD.org/src/rev/4bf8480a6b1e
branches:  trunk
changeset: 365033:4bf8480a6b1e
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Sat Jul 28 20:26:13 2018 +0000

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

diffstat:

 sys/arch/usermode/include/trap.h |  19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r 0c31a0dad546 -r 4bf8480a6b1e sys/arch/usermode/include/trap.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/usermode/include/trap.h  Sat Jul 28 20:26:13 2018 +0000
@@ -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



Home | Main Index | Thread Index | Old Index