summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_map.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-06 14:03:06 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-06 14:03:06 +0000
commit0e51140bc4d8ce922edd65b75fccdcb28c0d7872 (patch)
tree77db98dcab4c639849cf05e5384fc5eab782dd2f /sys/uvm/uvm_map.c
parent1b4909669b8582212bdca9564ac3951ad63c336b (diff)
Add a new type voff_t (right now it's typedefed as off_t) used for offsets
into objects. Gives the possibilty to mmap beyond the size of vaddr_t. From NetBSD.
Diffstat (limited to 'sys/uvm/uvm_map.c')
-rw-r--r--sys/uvm/uvm_map.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index 2a191725670..598f20c3a37 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: uvm_map.c,v 1.21 2001/07/18 14:38:07 art Exp $ */
-/* $NetBSD: uvm_map.c,v 1.69 1999/09/12 01:17:37 chs Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.22 2001/08/06 14:03:04 art Exp $ */
+/* $NetBSD: uvm_map.c,v 1.70 2000/03/26 20:54:47 kleink Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -469,7 +469,7 @@ uvm_map(map, startp, size, uobj, uoffset, flags)
vaddr_t *startp; /* IN/OUT */
vsize_t size;
struct uvm_object *uobj;
- vaddr_t uoffset;
+ voff_t uoffset;
uvm_flag_t flags;
{
vm_map_entry_t prev_entry, new_entry;
@@ -798,7 +798,7 @@ uvm_map_findspace(map, hint, length, result, uobj, uoffset, fixed)
vsize_t length;
vaddr_t *result; /* OUT */
struct uvm_object *uobj;
- vaddr_t uoffset;
+ voff_t uoffset;
boolean_t fixed;
{
vm_map_entry_t entry, next, tmp;
@@ -3235,9 +3235,9 @@ uvm_map_printit(map, full, pr)
return;
for (entry = map->header.next; entry != &map->header;
entry = entry->next) {
- (*pr)(" - %p: 0x%lx->0x%lx: obj=%p/0x%x, amap=%p/%d\n",
+ (*pr)(" - %p: 0x%lx->0x%lx: obj=%p/0x%llx, amap=%p/%d\n",
entry, entry->start, entry->end, entry->object.uvm_obj,
- entry->offset, entry->aref.ar_amap, entry->aref.ar_pageoff);
+ (long long)entry->offset, entry->aref.ar_amap, entry->aref.ar_pageoff);
(*pr)(
"\tsubmap=%c, cow=%c, nc=%c, prot(max)=%d/%d, inh=%d, wc=%d, adv=%d\n",
(entry->etype & UVM_ET_SUBMAP) ? 'T' : 'F',