Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/pmap Oops. Missed some possible UVM_ET_IS*() macro ...
details: https://anonhg.NetBSD.org/src/rev/0f51528ec2ef
branches: trunk
changeset: 543314:0f51528ec2ef
user: atatat <atatat%NetBSD.org@localhost>
date: Sun Feb 23 01:08:29 2003 +0000
description:
Oops. Missed some possible UVM_ET_IS*() macro uses.
diffstat:
usr.bin/pmap/pmap.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (49 lines):
diff -r 8feb9536bbf6 -r 0f51528ec2ef usr.bin/pmap/pmap.c
--- a/usr.bin/pmap/pmap.c Sun Feb 23 00:27:51 2003 +0000
+++ b/usr.bin/pmap/pmap.c Sun Feb 23 01:08:29 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.11 2003/02/22 17:45:04 atatat Exp $ */
+/* $NetBSD: pmap.c,v 1.12 2003/02/23 01:08:29 atatat Exp $ */
/*
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: pmap.c,v 1.11 2003/02/22 17:45:04 atatat Exp $");
+__RCSID("$NetBSD: pmap.c,v 1.12 2003/02/23 01:08:29 atatat Exp $");
#endif
#include <string.h>
@@ -415,8 +415,8 @@
(vme->max_protection & VM_PROT_READ) ? 'r' : '-',
(vme->max_protection & VM_PROT_WRITE) ? 'w' : '-',
(vme->max_protection & VM_PROT_EXECUTE) ? 'x' : '-',
- (vme->etype & UVM_ET_COPYONWRITE) ? "COW" : "NCOW",
- (vme->etype & UVM_ET_NEEDSCOPY) ? "NC" : "NNC",
+ UVM_ET_ISCOPYONWRITE(vme) ? "COW" : "NCOW",
+ UVM_ET_ISNEEDSCOPY(vme) ? "NC" : "NNC",
vme->inheritance, vme->wired_count,
vme->advice);
if (verbose) {
@@ -437,7 +437,7 @@
(vme->protection & VM_PROT_READ) ? 'r' : '-',
(vme->protection & VM_PROT_WRITE) ? 'w' : '-',
(vme->protection & VM_PROT_EXECUTE) ? 'x' : '-',
- (vme->etype & UVM_ET_COPYONWRITE) ? 'p' : 's',
+ UVM_ET_ISCOPYONWRITE(vme) ? 'p' : 's',
(int)sizeof(void *) * 2,
vme->offset,
major(dev), minor(dev), inode,
@@ -510,8 +510,8 @@
(vme->protection & VM_PROT_READ) ? 'r' : '-',
(vme->protection & VM_PROT_WRITE) ? 'w' : '-',
(vme->protection & VM_PROT_EXECUTE) ? 'x' : '-',
- (vme->etype & UVM_ET_COPYONWRITE) ? 'p' : 's',
- (vme->etype & UVM_ET_NEEDSCOPY) ? '+' : '-',
+ UVM_ET_ISCOPYONWRITE(vme) ? 'p' : 's',
+ UVM_ET_ISNEEDSCOPY(vme) ? '+' : '-',
(vme->max_protection & VM_PROT_READ) ? 'r' : '-',
(vme->max_protection & VM_PROT_WRITE) ? 'w' : '-',
(vme->max_protection & VM_PROT_EXECUTE) ? 'x' : '-',
Home |
Main Index |
Thread Index |
Old Index