summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-11-29 12:54:37 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-11-29 12:54:37 +0000
commita8dcfc495fed982c37507a9f71fc5341893d5e53 (patch)
treea469aee38d2bc7ef41155c2481362153e5541bf6
parentd197cef80a3fa85a4ff7aa8cce115c9c592233d6 (diff)
Give armv7 a <machine/cpufunc.h> header and use it to add a prototype
for smc_call(). ok patrick@
-rw-r--r--sys/arch/armv7/include/cpufunc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/arch/armv7/include/cpufunc.h b/sys/arch/armv7/include/cpufunc.h
new file mode 100644
index 00000000000..a52b3b0f8de
--- /dev/null
+++ b/sys/arch/armv7/include/cpufunc.h
@@ -0,0 +1,16 @@
+/* $OpenBSD: cpufunc.h,v 1.1 2020/11/29 12:54:36 kettenis Exp $ */
+
+/* Public Domain */
+
+#ifndef _MACHINE_CPUFUNC_H_
+#define _MACHINE_CPUFUNC_H_
+
+#include <arm/cpufunc.h>
+
+#ifdef _KERNEL
+
+register_t smc_call(register_t, register_t, register_t, register_t);
+
+#endif /* _KERNEL */
+
+#endif /* _MACHINE_CPUFUNC_H_ */