Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Move aarch64/fpu.h to arm/fpu.h.



details:   https://anonhg.NetBSD.org/src/rev/4a5f4341c0fd
branches:  trunk
changeset: 973405:4a5f4341c0fd
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Jun 29 23:53:12 2020 +0000

description:
Move aarch64/fpu.h to arm/fpu.h.

diffstat:

 sys/arch/aarch64/aarch64/fpu.c      |   7 ++++---
 sys/arch/aarch64/include/fpu.h      |  35 -----------------------------------
 sys/arch/arm/include/fpu.h          |  35 +++++++++++++++++++++++++++++++++++
 sys/crypto/aes/arch/arm/aes_armv8.c |   7 ++++---
 4 files changed, 43 insertions(+), 41 deletions(-)

diffs (134 lines):

diff -r e73df227939f -r 4a5f4341c0fd sys/arch/aarch64/aarch64/fpu.c
--- a/sys/arch/aarch64/aarch64/fpu.c    Mon Jun 29 23:51:35 2020 +0000
+++ b/sys/arch/aarch64/aarch64/fpu.c    Mon Jun 29 23:53:12 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu.c,v 1.4 2020/06/29 23:22:27 riastradh Exp $ */
+/* $NetBSD: fpu.c,v 1.5 2020/06/29 23:53:12 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,14 +31,15 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: fpu.c,v 1.4 2020/06/29 23:22:27 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: fpu.c,v 1.5 2020/06/29 23:53:12 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/lwp.h>
 #include <sys/evcnt.h>
 
-#include <aarch64/fpu.h>
+#include <arm/fpu.h>
+
 #include <aarch64/locore.h>
 #include <aarch64/reg.h>
 #include <aarch64/pcb.h>
diff -r e73df227939f -r 4a5f4341c0fd sys/arch/aarch64/include/fpu.h
--- a/sys/arch/aarch64/include/fpu.h    Mon Jun 29 23:51:35 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-/*     $NetBSD: fpu.h,v 1.1 2020/06/29 23:22:27 riastradh Exp $        */
-
-/*
- * Copyright (c) 2020 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _AARCH64_FPU_H_
-#define _AARCH64_FPU_H_
-
-void fpu_kern_enter(void);
-void fpu_kern_leave(void);
-
-#endif /* _AARCH64_FPU_H_ */
diff -r e73df227939f -r 4a5f4341c0fd sys/arch/arm/include/fpu.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arm/include/fpu.h        Mon Jun 29 23:53:12 2020 +0000
@@ -0,0 +1,35 @@
+/*     $NetBSD: fpu.h,v 1.1 2020/06/29 23:53:12 riastradh Exp $        */
+
+/*
+ * Copyright (c) 2020 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef        _SYS_ARCH_ARM_FPU_H
+#define        _SYS_ARCH_ARM_FPU_H
+
+void fpu_kern_enter(void);
+void fpu_kern_leave(void);
+
+#endif /* _SYS_ARCH_ARM_FPU_H */
diff -r e73df227939f -r 4a5f4341c0fd sys/crypto/aes/arch/arm/aes_armv8.c
--- a/sys/crypto/aes/arch/arm/aes_armv8.c       Mon Jun 29 23:51:35 2020 +0000
+++ b/sys/crypto/aes/arch/arm/aes_armv8.c       Mon Jun 29 23:53:12 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aes_armv8.c,v 1.1 2020/06/29 23:31:41 riastradh Exp $  */
+/*     $NetBSD: aes_armv8.c,v 1.2 2020/06/29 23:53:12 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: aes_armv8.c,v 1.1 2020/06/29 23:31:41 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: aes_armv8.c,v 1.2 2020/06/29 23:53:12 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/proc.h>
@@ -36,8 +36,9 @@
 #include <crypto/aes/aes.h>
 #include <crypto/aes/arch/arm/aes_armv8.h>
 
+#include <arm/fpu.h>
+
 #include <aarch64/armreg.h>
-#include <aarch64/fpu.h>
 
 static void
 aesarmv8_setenckey(struct aesenc *enc, const uint8_t key[static 16],



Home | Main Index | Thread Index | Old Index