Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 fix build error. need cast.



details:   https://anonhg.NetBSD.org/src/rev/9483a58b0914
branches:  trunk
changeset: 974274:9483a58b0914
user:      ryo <ryo%NetBSD.org@localhost>
date:      Mon Jul 27 07:32:48 2020 +0000

description:
fix build error. need cast.

diffstat:

 sys/arch/aarch64/aarch64/trap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 42a18b4762be -r 9483a58b0914 sys/arch/aarch64/aarch64/trap.c
--- a/sys/arch/aarch64/aarch64/trap.c   Mon Jul 27 06:52:48 2020 +0000
+++ b/sys/arch/aarch64/aarch64/trap.c   Mon Jul 27 07:32:48 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.33 2020/07/26 07:26:52 ryo Exp $ */
+/* $NetBSD: trap.c,v 1.34 2020/07/27 07:32:48 ryo Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.33 2020/07/26 07:26:52 ryo Exp $");
+__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.34 2020/07/27 07:32:48 ryo Exp $");
 
 #include "opt_arm_intr_impl.h"
 #include "opt_compat_netbsd32.h"
@@ -615,10 +615,10 @@
        if ((error = cpu_set_onfault(&fb)) == 0) {
                if (insn & 0x00400000) {
                        /* swpb */
-                       val = atomic_swap_8(vaddr, val);
+                       val = atomic_swap_8((uint8_t *)vaddr, val);
                } else {
                        /* swp */
-                       val = atomic_swap_32(vaddr, val);
+                       val = atomic_swap_32((uint32_t *)vaddr, val);
                }
                cpu_unset_onfault();
                tf->tf_reg[Rd] = val;



Home | Main Index | Thread Index | Old Index