diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-27 17:31:58 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-27 17:31:58 +0000 |
commit | 153fe111d253f539964bcb2c2acb0f342c905aa8 (patch) | |
tree | e892a9713ecbea715a47742552f67005a60aa2bd /sys/arch | |
parent | d5f4a1c74d5f33bfe74ffd97e7c09099c29c23a4 (diff) |
Make sure the minaddr hint for uvm_km_suballoc() calls is always initialized.
ok pedro@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/aviion/aviion/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/hp300/hp300/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/hppa/hppa/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/hppa64/hppa64/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/i386/i386/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/luna88k/luna88k/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/mac68k/mac68k/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/mvme68k/mvme68k/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/mvme88k/mvme88k/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/sgi/sgi/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/sh/sh/sh_machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/vax/vax/machdep.c | 3 |
12 files changed, 24 insertions, 12 deletions
diff --git a/sys/arch/aviion/aviion/machdep.c b/sys/arch/aviion/aviion/machdep.c index eb4b2527e0a..75cd1b4ddf5 100644 --- a/sys/arch/aviion/aviion/machdep.c +++ b/sys/arch/aviion/aviion/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.7 2007/05/26 20:26:50 pedro Exp $ */ +/* $OpenBSD: machdep.c,v 1.8 2007/05/27 17:31:55 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -279,6 +279,7 @@ cpu_startup() * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index c04e5885585..5726190a6d1 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.112 2007/05/26 20:26:50 pedro Exp $ */ +/* $OpenBSD: machdep.c,v 1.113 2007/05/27 17:31:56 miod Exp $ */ /* $NetBSD: machdep.c,v 1.121 1999/03/26 23:41:29 mycroft Exp $ */ /* @@ -299,6 +299,7 @@ cpu_startup() * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index 35d6469c7dd..3548ac24a78 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.156 2007/05/26 20:26:50 pedro Exp $ */ +/* $OpenBSD: machdep.c,v 1.157 2007/05/27 17:31:56 miod Exp $ */ /* * Copyright (c) 1999-2003 Michael Shalayeff @@ -650,6 +650,7 @@ cpu_startup(void) * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); diff --git a/sys/arch/hppa64/hppa64/machdep.c b/sys/arch/hppa64/hppa64/machdep.c index 377bc6ddb7a..70c7c882c33 100644 --- a/sys/arch/hppa64/hppa64/machdep.c +++ b/sys/arch/hppa64/hppa64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.5 2007/05/26 20:26:50 pedro Exp $ */ +/* $OpenBSD: machdep.c,v 1.6 2007/05/27 17:31:56 miod Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -415,6 +415,7 @@ printf("here3\n"); * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 1bbdc48fba8..e1c6400b283 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.392 2007/05/26 22:09:17 weingart Exp $ */ +/* $OpenBSD: machdep.c,v 1.393 2007/05/27 17:31:56 miod Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -433,6 +433,7 @@ cpu_startup() * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); diff --git a/sys/arch/luna88k/luna88k/machdep.c b/sys/arch/luna88k/luna88k/machdep.c index 6932ee9432e..0740740fc85 100644 --- a/sys/arch/luna88k/luna88k/machdep.c +++ b/sys/arch/luna88k/luna88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.41 2007/05/26 20:26:50 pedro Exp $ */ +/* $OpenBSD: machdep.c,v 1.42 2007/05/27 17:31:56 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -475,6 +475,7 @@ cpu_startup() * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index 02e1ebc0128..894a958c419 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.138 2007/05/26 20:26:50 pedro Exp $ */ +/* $OpenBSD: machdep.c,v 1.139 2007/05/27 17:31:56 miod Exp $ */ /* $NetBSD: machdep.c,v 1.207 1998/07/08 04:39:34 thorpej Exp $ */ /* @@ -428,6 +428,7 @@ cpu_startup(void) * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); diff --git a/sys/arch/mvme68k/mvme68k/machdep.c b/sys/arch/mvme68k/mvme68k/machdep.c index fd3713e5856..26e2beb0b2f 100644 --- a/sys/arch/mvme68k/mvme68k/machdep.c +++ b/sys/arch/mvme68k/mvme68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.102 2007/05/26 20:26:51 pedro Exp $ */ +/* $OpenBSD: machdep.c,v 1.103 2007/05/27 17:31:56 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -269,6 +269,7 @@ cpu_startup() * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index f703d099263..b9315357892 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.189 2007/05/26 20:26:51 pedro Exp $ */ +/* $OpenBSD: machdep.c,v 1.190 2007/05/27 17:31:57 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -394,6 +394,7 @@ cpu_startup() * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c index da4ae6e1a50..8dc772e5f39 100644 --- a/sys/arch/sgi/sgi/machdep.c +++ b/sys/arch/sgi/sgi/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.41 2007/05/27 14:26:44 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.42 2007/05/27 17:31:57 miod Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -744,6 +744,7 @@ cpu_startup() * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); /* Allocate a submap for physio */ diff --git a/sys/arch/sh/sh/sh_machdep.c b/sys/arch/sh/sh/sh_machdep.c index 9d8045b058b..bd90fafd92b 100644 --- a/sys/arch/sh/sh/sh_machdep.c +++ b/sys/arch/sh/sh/sh_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sh_machdep.c,v 1.13 2007/05/26 20:26:51 pedro Exp $ */ +/* $OpenBSD: sh_machdep.c,v 1.14 2007/05/27 17:31:57 miod Exp $ */ /* $NetBSD: sh3_machdep.c,v 1.59 2006/03/04 01:13:36 uwe Exp $ */ /* @@ -316,6 +316,7 @@ sh_startup() * Allocate a submap for exec arguments. This map effectively * limits the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); diff --git a/sys/arch/vax/vax/machdep.c b/sys/arch/vax/vax/machdep.c index e545a325125..19b880d9196 100644 --- a/sys/arch/vax/vax/machdep.c +++ b/sys/arch/vax/vax/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.89 2007/05/26 20:26:51 pedro Exp $ */ +/* $OpenBSD: machdep.c,v 1.90 2007/05/27 17:31:57 miod Exp $ */ /* $NetBSD: machdep.c,v 1.108 2000/09/13 15:00:23 thorpej Exp $ */ /* @@ -224,6 +224,7 @@ cpu_startup() * Allocate a submap for exec arguments. This map effectively limits * the number of processes exec'ing at any time. */ + minaddr = vm_map_min(kernel_map); exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); |