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 Forgot the two header files



details:   https://anonhg.NetBSD.org/src/rev/bdde201ceca7
branches:  trunk
changeset: 834187:bdde201ceca7
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Wed Aug 01 09:52:15 2018 +0000

description:
Forgot the two header files

diffstat:

 sys/arch/usermode/include/cpufunc.h  |  20 ++++++++++++++++++++
 sys/arch/usermode/include/ucontext.h |  23 +++++++++++++++++++++++
 2 files changed, 43 insertions(+), 0 deletions(-)

diffs (51 lines):

diff -r af8d562fd9dc -r bdde201ceca7 sys/arch/usermode/include/cpufunc.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/usermode/include/cpufunc.h       Wed Aug 01 09:52:15 2018 +0000
@@ -0,0 +1,20 @@
+/* $NetBSD: cpufunc.h,v 1.1 2018/08/01 09:52:15 reinoud Exp $ */
+
+/*
+ * Automatically generated by ./genheaders.sh on Wed May 16 14:39:02 CEST 2018
+ * Do not modify directly!
+ */
+#ifndef _USERMODE_INT_LIMITS_H
+#define _USERMODE_INT_LIMITS_H
+
+#if defined(__i386__)
+#include "../../i386/include/cpufunc.h"
+#elif defined(__x86_64__)
+#include "../../amd64/include/cpufunc.h"
+#elif defined(__arm__)
+#include "../../arm/include/cpufunc.h"
+#else
+#error port me
+#endif
+
+#endif
diff -r af8d562fd9dc -r bdde201ceca7 sys/arch/usermode/include/ucontext.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/usermode/include/ucontext.h      Wed Aug 01 09:52:15 2018 +0000
@@ -0,0 +1,23 @@
+/* $NetBSD: ucontext.h,v 1.1 2018/08/01 09:52:15 reinoud Exp $ */
+
+#ifndef _USERMODE_UCONTEXT_H
+#define _USERMODE_UCONTEXT_H
+
+#include <sys/ucontext.h>
+#include <machine/trap.h>
+#include <machine/psl.h>
+
+#if defined(__i386__)
+
+#elif defined(__x86_64__)
+
+#define _UC_MACHINE_RFLAGS(uc) ((uc)->uc_mcontext.__gregs[26])
+
+#elif defined(__arm__)
+#error port me
+#else
+#error port me
+#endif
+
+#endif /* _USERMODE_UCONTEXT_H */
+



Home | Main Index | Thread Index | Old Index