aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2018-05-16 16:56:35 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2018-05-16 16:56:35 +0000
commitca75fa17ee4f19493d49c8183416a8f3015b542f (patch)
tree01fe1c4ff427b87354f96923838b304a14e6941a /sys
parentf2a2dfa72920e6c5c03165c8866ce0d10d78e053 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/riscv/include/cpufunc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/riscv/include/cpufunc.h b/sys/riscv/include/cpufunc.h
index 6cac649b4e95..e411c6db09e9 100644
--- a/sys/riscv/include/cpufunc.h
+++ b/sys/riscv/include/cpufunc.h
@@ -37,10 +37,6 @@
#ifndef _MACHINE_CPUFUNC_H_
#define _MACHINE_CPUFUNC_H_
-#ifdef _KERNEL
-
-#include <machine/riscvreg.h>
-
static __inline void
breakpoint(void)
{
@@ -48,6 +44,10 @@ breakpoint(void)
__asm("ebreak");
}
+#ifdef _KERNEL
+
+#include <machine/riscvreg.h>
+
static __inline register_t
intr_disable(void)
{