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)
This commit is contained in:
jdp 1998-10-01 20:46:41 +00:00
parent 3050e0e5a7
commit cf6a8a266f

View File

@ -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++;