diff options
author | bde <bde@FreeBSD.org> | 1995-08-26 23:18:38 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-08-26 23:18:38 +0000 |
commit | dba3676dfb1b2d812e9d1ccdd2a7041c3c9bcc34 (patch) | |
tree | e38b19e9583dcf934d9a6d9b027196010976ed0c /sys | |
parent | 6830acbbd7841c0d377302abd56adc02b02d2b69 (diff) | |
download | FreeBSD-src-dba3676dfb1b2d812e9d1ccdd2a7041c3c9bcc34.zip FreeBSD-src-dba3676dfb1b2d812e9d1ccdd2a7041c3c9bcc34.tar.gz |
Change vm_map_print() to have the correct number and type of args for
a ddb command.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_map.c | 15 | ||||
-rw-r--r-- | sys/vm/vm_map.h | 7 |
2 files changed, 15 insertions, 7 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 73e5611..119e4ee 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_map.c,v 1.22 1995/05/30 08:16:07 rgrimes Exp $ + * $Id: vm_map.c,v 1.23 1995/07/13 08:48:26 davidg Exp $ */ /* @@ -2231,11 +2231,14 @@ vm_map_simplify(map, start) * vm_map_print: [ debug ] */ void -vm_map_print(map, full) - register vm_map_t map; +vm_map_print(imap, full, dummy3, dummy4) + /* db_expr_t */ int imap; boolean_t full; + /* db_expr_t */ int dummy3; + char *dummy4; { register vm_map_entry_t entry; + register vm_map_t map = (vm_map_t)imap; /* XXX */ iprintf("%s map 0x%x: pmap=0x%x,ref=%d,nentries=%d,version=%d\n", (map->is_main_map ? "Task" : "Share"), @@ -2270,7 +2273,8 @@ vm_map_print(map, full) (entry->prev->object.share_map != entry->object.share_map)) { indent += 2; - vm_map_print(entry->object.share_map, full); + vm_map_print((int)entry->object.share_map, + full, 0, (char *)0); indent -= 2; } } else { @@ -2287,7 +2291,8 @@ vm_map_print(map, full) (entry->prev->object.vm_object != entry->object.vm_object)) { indent += 2; - vm_object_print(entry->object.vm_object, full); + vm_object_print((int)entry->object.vm_object, + full, 0, (char *)0); indent -= 2; } } diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h index 98ecb7e..07c17c0 100644 --- a/sys/vm/vm_map.h +++ b/sys/vm/vm_map.h @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_map.h,v 1.5 1995/03/16 18:17:17 bde Exp $ + * $Id: vm_map.h,v 1.6 1995/07/13 08:48:28 davidg Exp $ */ /* @@ -204,7 +204,10 @@ void vm_map_lookup_done __P((vm_map_t, vm_map_entry_t)); boolean_t vm_map_lookup_entry __P((vm_map_t, vm_offset_t, vm_map_entry_t *)); int vm_map_pageable __P((vm_map_t, vm_offset_t, vm_offset_t, boolean_t)); int vm_map_clean __P((vm_map_t, vm_offset_t, vm_offset_t, boolean_t, boolean_t)); -void vm_map_print __P((vm_map_t, boolean_t)); +#ifdef DDB +void vm_map_print __P((/* db_expr_t */ int, boolean_t, /* db_expr_t */ int, + char *)); +#endif int vm_map_protect __P((vm_map_t, vm_offset_t, vm_offset_t, vm_prot_t, boolean_t)); void vm_map_reference __P((vm_map_t)); int vm_map_remove __P((vm_map_t, vm_offset_t, vm_offset_t)); |