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 add missing casts
details: https://anonhg.NetBSD.org/src/rev/5af87d6c49fc
branches: trunk
changeset: 991531:5af87d6c49fc
user: christos <christos%NetBSD.org@localhost>
date: Tue Jul 17 00:36:30 2018 +0000
description:
add missing casts
diffstat:
sys/arch/aarch64/aarch64/process_machdep.c | 6 +++---
sys/arch/aarch64/aarch64/sig_machdep.c | 6 +++---
sys/arch/aarch64/aarch64/sys_machdep.c | 6 +++---
sys/arch/aarch64/aarch64/syscall.c | 6 +++---
sys/arch/aarch64/aarch64/vm_machdep.c | 8 ++++----
5 files changed, 16 insertions(+), 16 deletions(-)
diffs (136 lines):
diff -r dba9dde473d8 -r 5af87d6c49fc sys/arch/aarch64/aarch64/process_machdep.c
--- a/sys/arch/aarch64/aarch64/process_machdep.c Tue Jul 17 00:35:51 2018 +0000
+++ b/sys/arch/aarch64/aarch64/process_machdep.c Tue Jul 17 00:36:30 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: process_machdep.c,v 1.2 2018/04/01 04:35:03 ryo Exp $ */
+/* $NetBSD: process_machdep.c,v 1.3 2018/07/17 00:36:30 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: process_machdep.c,v 1.2 2018/04/01 04:35:03 ryo Exp $");
+__KERNEL_RCSID(1, "$NetBSD: process_machdep.c,v 1.3 2018/07/17 00:36:30 christos Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -60,7 +60,7 @@
return EINVAL;
l->l_md.md_utf->tf_regs = *regs;
- l->l_private = regs->r_tpidr;
+ l->l_private = (void *)regs->r_tpidr;
return 0;
}
diff -r dba9dde473d8 -r 5af87d6c49fc sys/arch/aarch64/aarch64/sig_machdep.c
--- a/sys/arch/aarch64/aarch64/sig_machdep.c Tue Jul 17 00:35:51 2018 +0000
+++ b/sys/arch/aarch64/aarch64/sig_machdep.c Tue Jul 17 00:36:30 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sig_machdep.c,v 1.2 2018/04/01 04:35:03 ryo Exp $ */
+/* $NetBSD: sig_machdep.c,v 1.3 2018/07/17 00:36:30 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: sig_machdep.c,v 1.2 2018/04/01 04:35:03 ryo Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sig_machdep.c,v 1.3 2018/07/17 00:36:30 christos Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -104,7 +104,7 @@
tf->tf_reg[28] = ucp; /* put in a callee saved register */
tf->tf_sp = sp;
- tf->tf_lr = sd->sd_tramp;
+ tf->tf_lr = (uint64_t)sd->sd_tramp;
tf->tf_pc = handler;
/*
diff -r dba9dde473d8 -r 5af87d6c49fc sys/arch/aarch64/aarch64/sys_machdep.c
--- a/sys/arch/aarch64/aarch64/sys_machdep.c Tue Jul 17 00:35:51 2018 +0000
+++ b/sys/arch/aarch64/aarch64/sys_machdep.c Tue Jul 17 00:36:30 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_machdep.c,v 1.2 2018/04/01 04:35:03 ryo Exp $ */
+/* $NetBSD: sys_machdep.c,v 1.3 2018/07/17 00:36:30 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: sys_machdep.c,v 1.2 2018/04/01 04:35:03 ryo Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sys_machdep.c,v 1.3 2018/07/17 00:36:30 christos Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -51,6 +51,6 @@
int
cpu_lwp_setprivate(lwp_t *l, void *addr)
{
- l->l_private = (register_t)addr;
+ l->l_private = addr;
return 0;
}
diff -r dba9dde473d8 -r 5af87d6c49fc sys/arch/aarch64/aarch64/syscall.c
--- a/sys/arch/aarch64/aarch64/syscall.c Tue Jul 17 00:35:51 2018 +0000
+++ b/sys/arch/aarch64/aarch64/syscall.c Tue Jul 17 00:36:30 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.2 2018/04/01 04:35:03 ryo Exp $ */
+/* $NetBSD: syscall.c,v 1.3 2018/07/17 00:36:30 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
#define EMULNAME(x) (x)
#define EMULNAMEU(x) (x)
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.2 2018/04/01 04:35:03 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.3 2018/07/17 00:36:30 christos Exp $");
void
cpu_spawn_return(struct lwp *l)
@@ -103,7 +103,7 @@
curcpu()->ci_data.cpu_nsyscall++;
size_t code = tf->tf_esr & 0xffff;
- register_t *params = tf->tf_reg;
+ register_t *params = (void *)tf->tf_reg;
size_t nargs = NARGREG;
switch (code) {
diff -r dba9dde473d8 -r 5af87d6c49fc sys/arch/aarch64/aarch64/vm_machdep.c
--- a/sys/arch/aarch64/aarch64/vm_machdep.c Tue Jul 17 00:35:51 2018 +0000
+++ b/sys/arch/aarch64/aarch64/vm_machdep.c Tue Jul 17 00:36:30 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.3 2018/07/12 10:46:41 maxv Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.4 2018/07/17 00:36:30 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.3 2018/07/12 10:46:41 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.4 2018/07/17 00:36:30 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -124,8 +124,8 @@
/* build a new switchframe */
struct trapframe * const ktf = utf - 1;
- ktf->tf_reg[27] = func;
- ktf->tf_reg[28] = arg;
+ ktf->tf_reg[27] = (uint64_t)func;
+ ktf->tf_reg[28] = (uint64_t)arg;
ktf->tf_reg[29] = 0;
KASSERT(reg_daif_read() == 0);
ktf->tf_lr = (uintptr_t)lwp_trampoline;
Home |
Main Index |
Thread Index |
Old Index