vm_map.c (30813) | vm_map.c (31016) |
---|---|
1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * The Mach Operating System project at Carnegie-Mellon University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 47 unchanged lines hidden (view full) --- 56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 57 * School of Computer Science 58 * Carnegie Mellon University 59 * Pittsburgh PA 15213-3890 60 * 61 * any improvements or extensions that they make and grant Carnegie the 62 * rights to redistribute these changes. 63 * | 1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * The Mach Operating System project at Carnegie-Mellon University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 47 unchanged lines hidden (view full) --- 56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 57 * School of Computer Science 58 * Carnegie Mellon University 59 * Pittsburgh PA 15213-3890 60 * 61 * any improvements or extensions that they make and grant Carnegie the 62 * rights to redistribute these changes. 63 * |
64 * $Id: vm_map.c,v 1.94 1997/10/24 23:41:00 dyson Exp $ | 64 * $Id: vm_map.c,v 1.95 1997/10/28 15:59:26 bde Exp $ |
65 */ 66 67/* 68 * Virtual memory mapping module. 69 */ 70 71#include <sys/param.h> 72#include <sys/systm.h> --- 74 unchanged lines hidden (view full) --- 147 * 148 * These restrictions are necessary since malloc() uses the 149 * maps and requires map entries. 150 */ 151 152extern char kstack[]; 153extern int inmprotect; 154 | 65 */ 66 67/* 68 * Virtual memory mapping module. 69 */ 70 71#include <sys/param.h> 72#include <sys/systm.h> --- 74 unchanged lines hidden (view full) --- 147 * 148 * These restrictions are necessary since malloc() uses the 149 * maps and requires map entries. 150 */ 151 152extern char kstack[]; 153extern int inmprotect; 154 |
155static int kentry_count; | |
156static struct vm_zone kmapentzone_store, mapentzone_store, mapzone_store; 157static vm_zone_t mapentzone, kmapentzone, mapzone; 158static struct vm_object kmapentobj, mapentobj, mapobj; 159#define MAP_ENTRY_INIT 128 160struct vm_map_entry map_entry_init[MAX_MAPENT]; 161struct vm_map_entry kmap_entry_init[MAX_KMAPENT]; 162struct vm_map map_init[MAX_KMAP]; 163 --- 1104 unchanged lines hidden (view full) --- 1268vm_map_user_pageable(map, start, end, new_pageable) 1269 register vm_map_t map; 1270 register vm_offset_t start; 1271 register vm_offset_t end; 1272 register boolean_t new_pageable; 1273{ 1274 register vm_map_entry_t entry; 1275 vm_map_entry_t start_entry; | 155static struct vm_zone kmapentzone_store, mapentzone_store, mapzone_store; 156static vm_zone_t mapentzone, kmapentzone, mapzone; 157static struct vm_object kmapentobj, mapentobj, mapobj; 158#define MAP_ENTRY_INIT 128 159struct vm_map_entry map_entry_init[MAX_MAPENT]; 160struct vm_map_entry kmap_entry_init[MAX_KMAPENT]; 161struct vm_map map_init[MAX_KMAP]; 162 --- 1104 unchanged lines hidden (view full) --- 1267vm_map_user_pageable(map, start, end, new_pageable) 1268 register vm_map_t map; 1269 register vm_offset_t start; 1270 register vm_offset_t end; 1271 register boolean_t new_pageable; 1272{ 1273 register vm_map_entry_t entry; 1274 vm_map_entry_t start_entry; |
1276 register vm_offset_t failed = 0; | |
1277 int rv; 1278 1279 vm_map_lock(map); 1280 VM_MAP_RANGE_CHECK(map, start, end); 1281 1282 if (vm_map_lookup_entry(map, start, &start_entry) == FALSE) { 1283 vm_map_unlock(map); 1284 return (KERN_INVALID_ADDRESS); --- 1241 unchanged lines hidden --- | 1275 int rv; 1276 1277 vm_map_lock(map); 1278 VM_MAP_RANGE_CHECK(map, start, end); 1279 1280 if (vm_map_lookup_entry(map, start, &start_entry) == FALSE) { 1281 vm_map_unlock(map); 1282 return (KERN_INVALID_ADDRESS); --- 1241 unchanged lines hidden --- |