Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Truncate values to 32-bit, not 40-bit.
details: https://anonhg.NetBSD.org/src/rev/576db7f07d9a
branches: trunk
changeset: 559698:576db7f07d9a
user: nakayama <nakayama%NetBSD.org@localhost>
date: Mon Mar 22 12:28:02 2004 +0000
description:
Truncate values to 32-bit, not 40-bit.
diffstat:
sys/arch/sparc/sparc/svr4_machdep.c | 12 ++++++------
sys/arch/sparc64/sparc64/svr4_machdep.c | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
diffs (80 lines):
diff -r c36710a0c63c -r 576db7f07d9a sys/arch/sparc/sparc/svr4_machdep.c
--- a/sys/arch/sparc/sparc/svr4_machdep.c Mon Mar 22 12:24:37 2004 +0000
+++ b/sys/arch/sparc/sparc/svr4_machdep.c Mon Mar 22 12:28:02 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_machdep.c,v 1.53 2003/10/05 21:13:23 pk Exp $ */
+/* $NetBSD: svr4_machdep.c,v 1.54 2004/03/22 12:28:02 nakayama Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.53 2003/10/05 21:13:23 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.54 2004/03/22 12:28:02 nakayama Exp $");
#if defined(_KERNEL_OPT)
#include "opt_kgdb.h"
@@ -588,8 +588,8 @@
tm = (u_quad_t) tv.tv_sec * 1000000000 +
(u_quad_t) tv.tv_usec * 1000;
- tf->tf_out[0] = (tm >> 32) & 0x00000000ffffffffffULL;
- tf->tf_out[1] = tm & 0x00000000ffffffffffULL;
+ tf->tf_out[0] = (tm >> 32) & 0x00000000ffffffffUL;
+ tf->tf_out[1] = tm & 0x00000000ffffffffUL;
}
break;
@@ -618,8 +618,8 @@
tv.tv_usec -
spc->spc_runtime.tv_usec)
* 1000;
- tf->tf_out[0] = (tm >> 32) & 0x00000000ffffffffffULL;
- tf->tf_out[1] = tm & 0x00000000ffffffffffULL;
+ tf->tf_out[0] = (tm >> 32) & 0x00000000ffffffffUL;
+ tf->tf_out[1] = tm & 0x00000000ffffffffUL;
}
break;
diff -r c36710a0c63c -r 576db7f07d9a sys/arch/sparc64/sparc64/svr4_machdep.c
--- a/sys/arch/sparc64/sparc64/svr4_machdep.c Mon Mar 22 12:24:37 2004 +0000
+++ b/sys/arch/sparc64/sparc64/svr4_machdep.c Mon Mar 22 12:28:02 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_machdep.c,v 1.35 2003/11/09 16:41:53 martin Exp $ */
+/* $NetBSD: svr4_machdep.c,v 1.36 2004/03/22 12:28:02 nakayama Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.35 2003/11/09 16:41:53 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_machdep.c,v 1.36 2004/03/22 12:28:02 nakayama Exp $");
#ifndef _LKM
#include "opt_ddb.h"
@@ -666,8 +666,8 @@
tm = (u_quad_t) tv.tv_sec * 1000000000 +
(u_quad_t) tv.tv_usec * 1000;
- tf->tf_out[0] = (tm >> 32) & 0x00000000ffffffffffULL;
- tf->tf_out[1] = tm & 0x00000000ffffffffffULL;
+ tf->tf_out[0] = (tm >> 32) & 0x00000000ffffffffUL;
+ tf->tf_out[1] = tm & 0x00000000ffffffffUL;
}
break;
@@ -696,8 +696,8 @@
tv.tv_usec -
spc->spc_runtime.tv_usec)
* 1000;
- tf->tf_out[0] = (tm >> 32) & 0x00000000ffffffffffULL;
- tf->tf_out[1] = tm & 0x00000000ffffffffffULL;
+ tf->tf_out[0] = (tm >> 32) & 0x00000000ffffffffUL;
+ tf->tf_out[1] = tm & 0x00000000ffffffffUL;
}
break;
Home |
Main Index |
Thread Index |
Old Index