Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Use "NULL" instead of "(something-or-othe...
details: https://anonhg.NetBSD.org/src/rev/17889c44db68
branches: trunk
changeset: 572374:17889c44db68
user: simonb <simonb%NetBSD.org@localhost>
date: Sat Jan 01 03:25:46 2005 +0000
description:
Use "NULL" instead of "(something-or-other *)0".
diffstat:
sys/arch/mips/mips/compat_16_machdep.c | 9 ++++-----
sys/arch/mips/mips/db_interface.c | 6 +++---
sys/arch/mips/mips/mips_machdep.c | 6 +++---
sys/arch/mips/mips/process_machdep.c | 6 +++---
sys/arch/mips/mips/vm_machdep.c | 6 +++---
5 files changed, 16 insertions(+), 17 deletions(-)
diffs (138 lines):
diff -r 0c3e4f15be9a -r 17889c44db68 sys/arch/mips/mips/compat_16_machdep.c
--- a/sys/arch/mips/mips/compat_16_machdep.c Sat Jan 01 03:24:43 2005 +0000
+++ b/sys/arch/mips/mips/compat_16_machdep.c Sat Jan 01 03:25:46 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_16_machdep.c,v 1.2 2003/11/26 08:36:49 he Exp $ */
+/* $NetBSD: compat_16_machdep.c,v 1.3 2005/01/01 03:25:46 simonb Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.2 2003/11/26 08:36:49 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.3 2005/01/01 03:25:46 simonb Exp $");
#include "opt_cputype.h"
#include "opt_compat_netbsd.h"
@@ -254,9 +254,8 @@
if (scp->sc_fpused) {
/* Disable the FPU to fault in FP registers. */
f->f_regs[_R_SR] &= ~MIPS_SR_COP_1_BIT;
- if (l == fpcurlwp) {
- fpcurlwp = (struct lwp *)0;
- }
+ if (l == fpcurlwp)
+ fpcurlwp = NULL;
l->l_addr->u_pcb.pcb_fpregs = *(struct fpreg *)scp->sc_fpregs;
}
#else
diff -r 0c3e4f15be9a -r 17889c44db68 sys/arch/mips/mips/db_interface.c
--- a/sys/arch/mips/mips/db_interface.c Sat Jan 01 03:24:43 2005 +0000
+++ b/sys/arch/mips/mips/db_interface.c Sat Jan 01 03:25:46 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.51 2003/11/26 08:36:49 he Exp $ */
+/* $NetBSD: db_interface.c,v 1.52 2005/01/01 03:25:46 simonb Exp $ */
/*
* Mach Operating System
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.51 2003/11/26 08:36:49 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.52 2005/01/01 03:25:46 simonb Exp $");
#include "opt_cputype.h" /* which mips CPUs do we support? */
#include "opt_ddb.h"
@@ -539,7 +539,7 @@
{ "kvtop", db_kvtophys_cmd, 0, 0 },
{ "tlb", db_tlbdump_cmd, 0, 0 },
{ "cp0", db_cp0dump_cmd, 0, 0 },
- { (char *)0, }
+ { NULL, }
};
#endif /* !KGDB */
diff -r 0c3e4f15be9a -r 17889c44db68 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Sat Jan 01 03:24:43 2005 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Sat Jan 01 03:25:46 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_machdep.c,v 1.176 2004/07/03 05:08:34 simonb Exp $ */
+/* $NetBSD: mips_machdep.c,v 1.177 2005/01/01 03:25:46 simonb Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -119,7 +119,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.176 2004/07/03 05:08:34 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.177 2005/01/01 03:25:46 simonb Exp $");
#include "opt_cputype.h"
@@ -1109,7 +1109,7 @@
f->f_regs[_R_A3] = (int)l->l_proc->p_psstr;
if ((l->l_md.md_flags & MDP_FPUSED) && l == fpcurlwp)
- fpcurlwp = (struct lwp *)0;
+ fpcurlwp = NULL;
memset(&l->l_addr->u_pcb.pcb_fpregs, 0, sizeof(struct fpreg));
l->l_md.md_flags &= ~MDP_FPUSED;
l->l_md.md_ss_addr = 0;
diff -r 0c3e4f15be9a -r 17889c44db68 sys/arch/mips/mips/process_machdep.c
--- a/sys/arch/mips/mips/process_machdep.c Sat Jan 01 03:24:43 2005 +0000
+++ b/sys/arch/mips/mips/process_machdep.c Sat Jan 01 03:25:46 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: process_machdep.c,v 1.24 2003/11/26 08:36:49 he Exp $ */
+/* $NetBSD: process_machdep.c,v 1.25 2005/01/01 03:25:46 simonb Exp $ */
/*
* Copyright (c) 1993 The Regents of the University of California.
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.24 2003/11/26 08:36:49 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.25 2005/01/01 03:25:46 simonb Exp $");
/*
* This file may seem a bit stylized, but that so that it's easier to port.
@@ -145,7 +145,7 @@
/* to load FPA contents next time when FP insn is executed */
if ((l->l_md.md_flags & MDP_FPUSED) && l == fpcurlwp)
- fpcurlwp = (struct lwp *)0;
+ fpcurlwp = NULL;
memcpy(&l->l_addr->u_pcb.pcb_fpregs, regs, sizeof(struct fpreg));
return 0;
}
diff -r 0c3e4f15be9a -r 17889c44db68 sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c Sat Jan 01 03:24:43 2005 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c Sat Jan 01 03:25:46 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.104 2004/09/17 14:11:21 skrll Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.105 2005/01/01 03:25:46 simonb Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -79,7 +79,7 @@
#include "opt_ddb.h"
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.104 2004/09/17 14:11:21 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.105 2005/01/01 03:25:46 simonb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -241,7 +241,7 @@
{
if ((l->l_md.md_flags & MDP_FPUSED) && l == fpcurlwp)
- fpcurlwp = (struct lwp *)0;
+ fpcurlwp = NULL;
}
/*
Home |
Main Index |
Thread Index |
Old Index