diff options
author | dfr <dfr@FreeBSD.org> | 1998-06-07 17:13:14 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-06-07 17:13:14 +0000 |
commit | 1d5f38ac2264102518a09c66a7b285f57e81e67e (patch) | |
tree | 83ce2f0e2b8041d2c933d3beffc1f4465ea5b929 /sys/vm/vm_map.c | |
parent | 83423d0e5a4ad035e44392f0427cb39232031e45 (diff) | |
download | FreeBSD-src-1d5f38ac2264102518a09c66a7b285f57e81e67e.zip FreeBSD-src-1d5f38ac2264102518a09c66a7b285f57e81e67e.tar.gz |
This commit fixes various 64bit portability problems required for
FreeBSD/alpha. The most significant item is to change the command
argument to ioctl functions from int to u_long. This change brings us
inline with various other BSD versions. Driver writers may like to
use (__FreeBSD_version == 300003) to detect this change.
The prototype FreeBSD/alpha machdep will follow in a couple of days
time.
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r-- | sys/vm/vm_map.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 24c028a..44fc57f 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.126 1998/05/16 23:03:20 dyson Exp $ + * $Id: vm_map.c,v 1.127 1998/05/21 07:47:55 dyson Exp $ */ /* @@ -2844,9 +2844,9 @@ DB_SHOW_COMMAND(map, vm_map_print) vm_map_entry_t entry; - db_iprintf("%s map 0x%x: pmap=0x%x, nentries=%d, version=%d\n", + db_iprintf("%s map 0x%lx: pmap=0x%lx, nentries=%d, version=%d\n", (map->is_main_map ? "Task" : "Share"), - (int) map, (int) (map->pmap), map->nentries, + (long) map, (long) (map->pmap), map->nentries, map->timestamp); nlines++; @@ -2865,8 +2865,8 @@ DB_SHOW_COMMAND(map, vm_map_print) } #endif - db_iprintf("map entry 0x%x: start=0x%x, end=0x%x\n", - (int) entry, (int) entry->start, (int) entry->end); + db_iprintf("map entry 0x%x: start=0x%lx, end=0x%lx\n", + (long) entry, (long) entry->start, (long) entry->end); nlines++; if (map->is_main_map) { static char *inheritance_name[4] = @@ -2880,23 +2880,23 @@ DB_SHOW_COMMAND(map, vm_map_print) db_printf(", wired"); } if (entry->eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP)) { - db_printf(", share=0x%x, offset=0x%x\n", - (int) entry->object.share_map, - (int) entry->offset); + db_printf(", share=0x%lx, offset=0x%lx\n", + (long) entry->object.share_map, + (long) entry->offset); nlines++; if ((entry->prev == &map->header) || ((entry->prev->eflags & MAP_ENTRY_IS_A_MAP) == 0) || (entry->prev->object.share_map != entry->object.share_map)) { db_indent += 2; - vm_map_print((int)entry->object.share_map, + vm_map_print((long)entry->object.share_map, full, 0, (char *)0); db_indent -= 2; } } else { - db_printf(", object=0x%x, offset=0x%x", - (int) entry->object.vm_object, - (int) entry->offset); + db_printf(", object=0x%lx, offset=0x%lx", + (long) entry->object.vm_object, + (long) entry->offset); if (entry->eflags & MAP_ENTRY_COW) db_printf(", copy (%s)", (entry->eflags & MAP_ENTRY_NEEDS_COPY) ? "needed" : "done"); @@ -2908,7 +2908,7 @@ DB_SHOW_COMMAND(map, vm_map_print) (entry->prev->object.vm_object != entry->object.vm_object)) { db_indent += 2; - vm_object_print((int)entry->object.vm_object, + vm_object_print((long)entry->object.vm_object, full, 0, (char *)0); nlines += 4; db_indent -= 2; @@ -2934,7 +2934,7 @@ DB_SHOW_COMMAND(procvm, procvm) printf("p = 0x%x, vmspace = 0x%x, map = 0x%x, pmap = 0x%x\n", p, p->p_vmspace, &p->p_vmspace->vm_map, &p->p_vmspace->vm_pmap); - vm_map_print ((int) &p->p_vmspace->vm_map, 1, 0, NULL); + vm_map_print ((long) &p->p_vmspace->vm_map, 1, 0, NULL); } #endif /* DDB */ |