Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 Fixup 64-bit type conversion issues.
details: https://anonhg.NetBSD.org/src/rev/0ca65144ece1
branches: trunk
changeset: 480031:0ca65144ece1
user: eeh <eeh%NetBSD.org@localhost>
date: Thu Dec 30 16:34:02 1999 +0000
description:
Fixup 64-bit type conversion issues.
diffstat:
sys/arch/sparc64/sparc64/db_interface.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r 6b37c75750b8 -r 0ca65144ece1 sys/arch/sparc64/sparc64/db_interface.c
--- a/sys/arch/sparc64/sparc64/db_interface.c Thu Dec 30 16:31:18 1999 +0000
+++ b/sys/arch/sparc64/sparc64/db_interface.c Thu Dec 30 16:34:02 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.24 1999/11/06 20:18:13 eeh Exp $ */
+/* $NetBSD: db_interface.c,v 1.25 1999/12/30 16:34:02 eeh Exp $ */
/*
* Mach Operating System
@@ -232,7 +232,7 @@
for (i=0; i<tl; i++) {
printf("%d tt=%lx tstate=%lx tpc=%p tnpc=%p\n",
i+1, (long)ts[i].tt, (u_long)ts[i].tstate,
- (void*)ts[i].tpc, (void*)ts[i].tnpc);
+ (void*)(u_long)ts[i].tpc, (void*)(u_long)ts[i].tnpc);
}
db_trap(type, 0/*code*/);
restoretstate(tl,ts);
@@ -386,10 +386,10 @@
n = 0;
for (i=0; i<STSZ; i++) {
- if((pdir = (paddr_t *)ldxa(&pm->pm_segs[i], ASI_PHYS_CACHED))) {
+ if((pdir = (paddr_t *)(u_long)ldxa(&pm->pm_segs[i], ASI_PHYS_CACHED))) {
db_printf("pdir %ld at %lx:\n", i, (long)pdir);
for (k=0; k<PDSZ; k++) {
- if ((ptbl = (paddr_t *)ldxa(&pdir[k], ASI_PHYS_CACHED))) {
+ if ((ptbl = (paddr_t *)(u_long)ldxa(&pdir[k], ASI_PHYS_CACHED))) {
db_printf("\tptable %ld:%ld at %lx:\n", i, k, (long)ptbl);
for (j=0; j<PTSZ; j++) {
int64_t data0, data1;
@@ -754,8 +754,8 @@
#define WATCH_VW (1L<<21)
#define WATCH_PR (1L<<24)
#define WATCH_PW (1L<<23)
-#define WATCH_PM (0xffffL<<33)
-#define WATCH_VM (0xffffL<<25)
+#define WATCH_PM (((u_int64_t)0xffffL)<<33)
+#define WATCH_VM (((u_int64_t)0xffffL)<<25)
{
register char c, *cp = modif;
Home |
Main Index |
Thread Index |
Old Index