diff options
author | jdp <jdp@FreeBSD.org> | 1998-10-01 20:46:41 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-10-01 20:46:41 +0000 |
commit | 317967a273e4cb16e6f717aac0ace4737ca3041e (patch) | |
tree | ea02b59582b9f44e959877e65b05b96e51f4fff1 /sys/vm/vm_map.c | |
parent | 9fb6dbbc14017286091a32441738682e3922cb53 (diff) | |
download | FreeBSD-src-317967a273e4cb16e6f717aac0ace4737ca3041e.zip FreeBSD-src-317967a273e4cb16e6f717aac0ace4737ca3041e.tar.gz |
Fix a bug in which a page index was used where a byte offset was
expected. This bug caused builds of Modula-3 to fail in mysterious
ways on SMP kernels. More precisely, such builds failed on systems
with kern.fast_vfork equal to 0, the default and only supported
value for SMP kernels.
PR: kern/7468
Submitted by: tegge (Tor Egge)
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r-- | sys/vm/vm_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 73c2d56..9a1233e 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.134 1998/08/24 08:39:37 dfr Exp $ + * $Id: vm_map.c,v 1.135 1998/09/04 08:06:57 dfr Exp $ */ /* @@ -1976,7 +1976,7 @@ vm_map_split(entry) new_object, shadow_list); vm_object_clear_flag(source, OBJ_ONEMAPPING); new_object->backing_object_offset = - orig_object->backing_object_offset + offidxstart; + orig_object->backing_object_offset + IDX_TO_OFF(offidxstart); new_object->backing_object = source; source->shadow_count++; source->generation++; |