summaryrefslogtreecommitdiff
path: root/sys/riscv/include
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2018-09-06 22:23:39 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2018-09-06 22:23:39 +0000
commitb3fa44b1feec8de02e8bee34710534e7423bb2e2 (patch)
treea05757094399e582d13007dceac0ee224313663b /sys/riscv/include
parent292b2fe0afe7ab2b76c6455db3d48f60808a6264 (diff)
Notes
Diffstat (limited to 'sys/riscv/include')
-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 4ee68dcfccbd4..f7a4957feea88 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)
{