From a0fce8272426e04c63074a6a15d5d740cdc024fb Mon Sep 17 00:00:00 2001 From: John Polstra Date: Thu, 1 Oct 1998 20:46:41 +0000 Subject: [PATCH] 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) --- sys/vm/vm_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 73c2d5645f4b..9a1233ecedd0 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++;