From 52f682b5823b83f1e906f18c5e969ef07a70b8f9 Mon Sep 17 00:00:00 2001 From: dyson Date: Thu, 16 Jan 1997 04:16:22 +0000 Subject: Change the map entry flags from bitfields to bitmasks. Allows for some code simplification. --- sys/fs/procfs/procfs_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/fs/procfs') diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c index b871a5d..27c44fa 100644 --- a/sys/fs/procfs/procfs_map.c +++ b/sys/fs/procfs/procfs_map.c @@ -113,7 +113,7 @@ procfs_domap(curp, p, pfs, uio) int resident, privateresident; char *type; - if (entry->is_a_map || entry->is_sub_map) + if (entry->eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP)) continue; obj = entry->object.vm_object; @@ -163,7 +163,7 @@ case OBJT_DEVICE: (entry->protection & VM_PROT_READ)?"r":"-", (entry->protection & VM_PROT_WRITE)?"w":"-", (entry->protection & VM_PROT_EXECUTE)?"x":"-", - entry->copy_on_write?"COW":" ", + (entry->eflags & MAP_ENTRY_COW)?"COW":" ", type); len = strlen(mebuffer); -- cgit v1.1