Change type of dumpmag to u_int32_t since it is actually

a 32bit unsigned magic number.
As per discussion on tech-kern, and fixes port-sparc64/11949.
This commit is contained in:
tsutsui 2002-03-06 13:10:18 +00:00
parent 0a7bf05cec
commit 3c8b0446fe
24 changed files with 54 additions and 54 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.252 2001/09/18 19:36:34 jdolecek Exp $ */
/* $NetBSD: machdep.c,v 1.253 2002/03/06 13:10:18 tsutsui Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@ -75,7 +75,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.252 2001/09/18 19:36:34 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.253 2002/03/06 13:10:18 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1151,7 +1151,7 @@ haltsys:
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.167 2002/01/28 09:56:46 aymeric Exp $ */
/* $NetBSD: machdep.c,v 1.168 2002/03/06 13:10:19 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -46,7 +46,7 @@
#include "opt_compat_netbsd.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.167 2002/01/28 09:56:46 aymeric Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.168 2002/03/06 13:10:19 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -573,7 +573,7 @@ cpu_reboot(howto, bootstr)
}
unsigned dumpmag = 0x8fca0101; /* magic number for savecore */
u_int32_t dumpmag = 0x8fca0101; /* magic number for savecore */
int dumpsize = 0; /* also for savecore */
long dumplo = 0;
cpu_kcore_hdr_t cpu_kcore_hdr;

View File

@ -1,4 +1,4 @@
/* $NetBSD: stubs.c,v 1.7 2002/01/05 22:41:47 chris Exp $ */
/* $NetBSD: stubs.c,v 1.8 2002/03/06 13:10:19 tsutsui Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -59,7 +59,7 @@ extern BootConfig bootconfig;
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.112 2001/09/10 21:19:11 chris Exp $ */
/* $NetBSD: machdep.c,v 1.113 2002/03/06 13:10:19 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -526,7 +526,7 @@ vaddr_t p;
return(p + BYTES_PER_DUMP);
}
unsigned dumpmag = 0x8fca0101; /* magic number for savecore */
u_int32_t dumpmag = 0x8fca0101; /* magic number for savecore */
int dumpsize = 0; /* also for savecore (pages) */
long dumplo = 0; /* (disk blocks) */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.4 2002/03/04 02:19:09 simonb Exp $ */
/* $NetBSD: machdep.c,v 1.5 2002/03/06 13:10:20 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -520,7 +520,7 @@ cpu_reboot(howto, bootstr)
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.154 2002/02/10 00:41:21 gmcgarry Exp $ */
/* $NetBSD: machdep.c,v 1.155 2002/03/06 13:10:20 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -855,7 +855,7 @@ cpu_dump(dump, blknop)
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: stubs.c,v 1.8 2001/11/27 01:12:56 thorpej Exp $ */
/* $NetBSD: stubs.c,v 1.9 2002/03/06 13:10:20 tsutsui Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -58,7 +58,7 @@ extern BootConfig bootconfig;
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.467 2002/01/31 17:40:51 christos Exp $ */
/* $NetBSD: machdep.c,v 1.468 2002/03/06 13:10:20 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.467 2002/01/31 17:40:51 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.468 2002/03/06 13:10:20 tsutsui Exp $");
#include "opt_cputype.h"
#include "opt_ddb.h"
@ -2210,7 +2210,7 @@ haltsys:
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.19 2001/09/10 21:19:32 chris Exp $ */
/* $NetBSD: machdep.c,v 1.20 2002/03/06 13:10:21 tsutsui Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.19 2001/09/10 21:19:32 chris Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.20 2002/03/06 13:10:21 tsutsui Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -641,7 +641,7 @@ cpu_dump(dump, blknop)
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.267 2001/11/20 07:45:04 chs Exp $ */
/* $NetBSD: machdep.c,v 1.268 2002/03/06 13:10:21 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -766,7 +766,7 @@ cpu_dump(dump, blknop)
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: mips_machdep.c,v 1.122 2002/03/05 15:53:00 simonb Exp $ */
/* $NetBSD: mips_machdep.c,v 1.123 2002/03/06 13:10:22 tsutsui Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@ -120,7 +120,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.122 2002/03/05 15:53:00 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.123 2002/03/06 13:10:22 tsutsui Exp $");
#include "opt_cputype.h"
#include "opt_compat_netbsd.h"
@ -1295,7 +1295,7 @@ extern int mem_cluster_cnt;
/*
* These variables are needed by /sbin/savecore.
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.87 2002/02/12 20:38:39 scw Exp $ */
/* $NetBSD: machdep.c,v 1.88 2002/03/06 13:10:22 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -963,7 +963,7 @@ cpu_dump(dump, blknop)
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.27 2001/12/02 01:17:52 tsutsui Exp $ */
/* $NetBSD: machdep.c,v 1.28 2002/03/06 13:10:22 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -599,7 +599,7 @@ cpu_dump(dump, blknop)
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.45 2001/09/10 21:19:20 chris Exp $ */
/* $NetBSD: machdep.c,v 1.46 2002/03/06 13:10:23 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -752,7 +752,7 @@ cpu_dump(dump, blknop)
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.125 2001/09/10 21:19:22 chris Exp $ */
/* $NetBSD: machdep.c,v 1.126 2002/03/06 13:10:23 tsutsui Exp $ */
/*-
* Copyright (c) 1996 Matthias Pfaller.
@ -559,7 +559,7 @@ haltsys:
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: powerpc_machdep.c,v 1.8 2001/08/26 02:47:39 matt Exp $ */
/* $NetBSD: powerpc_machdep.c,v 1.9 2002/03/06 13:10:23 tsutsui Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -124,7 +124,7 @@ cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
/*
* Crash dump handling.
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* size of dump in pages */
long dumplo = -1; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: sh3_machdep.c,v 1.30 2002/03/02 22:26:27 uch Exp $ */
/* $NetBSD: sh3_machdep.c,v 1.31 2002/03/06 13:10:23 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -137,7 +137,7 @@ extern char sh_vector_tlbmiss[], sh_vector_tlbmiss_end[];
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.189 2002/02/03 14:10:03 darrenr Exp $ */
/* $NetBSD: machdep.c,v 1.190 2002/03/06 13:10:24 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -781,7 +781,7 @@ cpu_reboot(howto, user_boot_string)
/*NOTREACHED*/
}
u_long dumpmag = 0x8fca0101; /* magic number for savecore */
u_int32_t dumpmag = 0x8fca0101; /* magic number for savecore */
int dumpsize = 0; /* also for savecore */
long dumplo = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.114 2002/02/14 07:08:15 chs Exp $ */
/* $NetBSD: machdep.c,v 1.115 2002/03/06 13:10:24 tsutsui Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -860,7 +860,7 @@ haltsys:
/*NOTREACHED*/
}
u_long dumpmag = 0x8fca0101; /* magic number for savecore */
u_int32_t dumpmag = 0x8fca0101; /* magic number for savecore */
int dumpsize = 0; /* also for savecore */
long dumplo = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.12 2001/11/30 18:10:27 fredette Exp $ */
/* $NetBSD: machdep.c,v 1.13 2002/03/06 13:10:24 tsutsui Exp $ */
/*
* Copyright (c) 2001 Matthew Fredette.
@ -620,7 +620,7 @@ cpu_reboot(howto, user_boot_string)
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.152 2001/09/11 20:37:12 chs Exp $ */
/* $NetBSD: machdep.c,v 1.153 2002/03/06 13:10:25 tsutsui Exp $ */
/*
* Copyright (c) 1994, 1995 Gordon W. Ross
@ -527,7 +527,7 @@ cpu_reboot(howto, user_boot_string)
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.76 2001/09/11 20:37:13 chs Exp $ */
/* $NetBSD: machdep.c,v 1.77 2002/03/06 13:10:25 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -556,7 +556,7 @@ cpu_reboot(howto, user_boot_string)
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.121 2002/02/24 01:04:27 matt Exp $ */
/* $NetBSD: machdep.c,v 1.122 2002/03/06 13:10:25 tsutsui Exp $ */
/*
* Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
@ -104,7 +104,6 @@ char machine_arch[] = MACHINE_ARCH; /* from <machine/param.h> */
char cpu_model[100];
caddr_t msgbufaddr;
int physmem;
int dumpsize = 0;
int *symtab_start;
int *symtab_end;
int symtab_nsyms;
@ -244,8 +243,9 @@ cpu_startup()
#endif
}
u_int32_t dumpmag = 0x8fca0101;
int dumpsize = 0;
long dumplo = 0;
long dumpmag = 0x8fca0101;
void
cpu_dumpconf()

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.103 2001/12/27 02:23:27 wiz Exp $ */
/* $NetBSD: machdep.c,v 1.104 2002/03/06 13:10:25 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -691,7 +691,7 @@ cpu_dump(dump, blknop)
/*
* These variables are needed by /sbin/savecore
*/
u_long dumpmag = 0x8fca0101; /* magic number */
u_int32_t dumpmag = 0x8fca0101; /* magic number */
int dumpsize = 0; /* pages */
long dumplo = 0; /* blocks */