vm_kern.c (db17c6fc07f554d4a76d1f7149e5896a5ebef62d) vm_kern.c (1d7cf06c8c5e1c0232edf95a43a7c1dca598a812)
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

--- 198 unchanged lines hidden (view full) ---

207 mem->valid = VM_PAGE_BITS_ALL;
208 vm_page_flag_clear(mem, PG_ZERO);
209 vm_page_wakeup(mem);
210 }
211
212 /*
213 * And finally, mark the data as non-pageable.
214 */
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

--- 198 unchanged lines hidden (view full) ---

207 mem->valid = VM_PAGE_BITS_ALL;
208 vm_page_flag_clear(mem, PG_ZERO);
209 vm_page_wakeup(mem);
210 }
211
212 /*
213 * And finally, mark the data as non-pageable.
214 */
215 (void) vm_map_pageable(map, (vm_offset_t) addr, addr + size, FALSE);
215 (void) vm_map_wire(map, addr, addr + size, FALSE);
216
217 return (addr);
218}
219
220/*
221 * kmem_free:
222 *
223 * Release a region of kernel virtual memory allocated

--- 293 unchanged lines hidden ---
216
217 return (addr);
218}
219
220/*
221 * kmem_free:
222 *
223 * Release a region of kernel virtual memory allocated

--- 293 unchanged lines hidden ---