aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/contrib/opensolaris/uts/riscv
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-02-26 17:33:56 +0000
committerMark Johnston <markj@FreeBSD.org>2019-02-26 17:33:56 +0000
commit5563c675b37babaafe0e65b66e411168302e4197 (patch)
tree5f61f3394b2a9baa6cc2e8029ff32605d7171780 /sys/cddl/contrib/opensolaris/uts/riscv
parent4e5222d1cc58a05c3cd34cf83cd13dda906e9744 (diff)
downloadsrc-5563c675b37babaafe0e65b66e411168302e4197.tar.gz
src-5563c675b37babaafe0e65b66e411168302e4197.zip
Revert r344587.
The fasttrap_isa.h header is needed by libdtrace, not just the kernel.
Notes
Notes: svn path=/head/; revision=344591
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/riscv')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/riscv/dtrace/fasttrap_isa.c29
-rw-r--r--sys/cddl/contrib/opensolaris/uts/riscv/sys/fasttrap_isa.h46
2 files changed, 75 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/riscv/dtrace/fasttrap_isa.c b/sys/cddl/contrib/opensolaris/uts/riscv/dtrace/fasttrap_isa.c
new file mode 100644
index 000000000000..17ef0f3a94a7
--- /dev/null
+++ b/sys/cddl/contrib/opensolaris/uts/riscv/dtrace/fasttrap_isa.c
@@ -0,0 +1,29 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+
+/*
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+/*
+ * XXX: Placeholder for RISC-V fasttrap code
+ */
diff --git a/sys/cddl/contrib/opensolaris/uts/riscv/sys/fasttrap_isa.h b/sys/cddl/contrib/opensolaris/uts/riscv/sys/fasttrap_isa.h
new file mode 100644
index 000000000000..9d164e4c5bd8
--- /dev/null
+++ b/sys/cddl/contrib/opensolaris/uts/riscv/sys/fasttrap_isa.h
@@ -0,0 +1,46 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License, Version 1.0 only
+ * (the "License"). You may not use this file except in compliance
+ * with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+/*
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+#ifndef _FASTTRAP_ISA_H
+#define _FASTTRAP_ISA_H
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include <sys/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef uint32_t fasttrap_instr_t;
+
+/* XXX: Place for RISC-V fasttrap headers */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _FASTTRAP_ISA_H */