Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch eliminate PT_ENTRY_NULL in favor of plain old NULL.
details: https://anonhg.NetBSD.org/src/rev/2c2e7f1627c1
branches: trunk
changeset: 538192:2c2e7f1627c1
user: chs <chs%NetBSD.org@localhost>
date: Mon Oct 14 05:11:21 2002 +0000
description:
eliminate PT_ENTRY_NULL in favor of plain old NULL.
diffstat:
sys/arch/alpha/alpha/pmap.c | 6 +++---
sys/arch/alpha/include/pte.h | 3 +--
sys/arch/mips/include/pte.h | 4 +---
sys/arch/vax/include/pte.h | 4 +---
4 files changed, 6 insertions(+), 11 deletions(-)
diffs (80 lines):
diff -r 0cb1e813a2a9 -r 2c2e7f1627c1 sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c Mon Oct 14 05:05:02 2002 +0000
+++ b/sys/arch/alpha/alpha/pmap.c Mon Oct 14 05:11:21 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.193 2002/09/24 13:30:39 ad Exp $ */
+/* $NetBSD: pmap.c,v 1.194 2002/10/14 05:11:21 chs Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -153,7 +153,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.193 2002/09/24 13:30:39 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.194 2002/10/14 05:11:21 chs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2599,7 +2599,7 @@
/*
* PTE not provided, compute it from pmap and va.
*/
- if (pte == PT_ENTRY_NULL) {
+ if (pte == NULL) {
pte = pmap_l3pte(pmap, va, NULL);
if (pmap_pte_v(pte) == 0)
return (FALSE);
diff -r 0cb1e813a2a9 -r 2c2e7f1627c1 sys/arch/alpha/include/pte.h
--- a/sys/arch/alpha/include/pte.h Mon Oct 14 05:05:02 2002 +0000
+++ b/sys/arch/alpha/include/pte.h Mon Oct 14 05:11:21 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pte.h,v 1.26 1999/04/09 00:38:11 thorpej Exp $ */
+/* $NetBSD: pte.h,v 1.27 2002/10/14 05:11:23 chs Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -85,7 +85,6 @@
typedef alpha_pt_entry_t pt_entry_t;
-#define PT_ENTRY_NULL ((pt_entry_t *) 0)
#define PTESHIFT 3 /* pte size == 1 << PTESHIFT */
#define PG_V ALPHA_PTE_VALID
diff -r 0cb1e813a2a9 -r 2c2e7f1627c1 sys/arch/mips/include/pte.h
--- a/sys/arch/mips/include/pte.h Mon Oct 14 05:05:02 2002 +0000
+++ b/sys/arch/mips/include/pte.h Mon Oct 14 05:11:21 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pte.h,v 1.12 2002/03/05 15:39:31 simonb Exp $ */
+/* $NetBSD: pte.h,v 1.13 2002/10/14 05:11:23 chs Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -67,8 +67,6 @@
struct mips3_pte pt_mips3_pte;
} pt_entry_t;
-#define PT_ENTRY_NULL ((pt_entry_t *) 0)
-
/*
* Macros/inline functions to hide PTE format differences.
*/
diff -r 0cb1e813a2a9 -r 2c2e7f1627c1 sys/arch/vax/include/pte.h
--- a/sys/arch/vax/include/pte.h Mon Oct 14 05:05:02 2002 +0000
+++ b/sys/arch/vax/include/pte.h Mon Oct 14 05:11:21 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pte.h,v 1.19 2001/08/31 04:44:57 simonb Exp $ */
+/* $NetBSD: pte.h,v 1.20 2002/10/14 05:11:23 chs Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -53,8 +53,6 @@
#endif /* _LOCORE */
-#define PT_ENTRY_NULL ((pt_entry_t *) 0)
-
#define PG_V 0x80000000
#define PG_NV 0x00000000
#define PG_PROT 0x78000000
Home |
Main Index |
Thread Index |
Old Index