link_elf_obj.c (118094) | link_elf_obj.c (118771) |
---|---|
1/*- 2 * Copyright (c) 1998-2000 Doug Rabson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998-2000 Doug Rabson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/kern/link_elf_obj.c 118094 2003-07-27 17:04:56Z phk $"); | 28__FBSDID("$FreeBSD: head/sys/kern/link_elf_obj.c 118771 2003-08-11 07:14:08Z bms $"); |
29 30#include "opt_ddb.h" 31#include "opt_mac.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/lock.h> --- 703 unchanged lines hidden (view full) --- 740 741#ifdef SPARSE_MAPPING 742 /* 743 * Wire down the pages 744 */ 745 vm_map_wire(kernel_map, 746 (vm_offset_t) segbase, 747 (vm_offset_t) segbase + segs[i]->p_memsz, | 29 30#include "opt_ddb.h" 31#include "opt_mac.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/lock.h> --- 703 unchanged lines hidden (view full) --- 740 741#ifdef SPARSE_MAPPING 742 /* 743 * Wire down the pages 744 */ 745 vm_map_wire(kernel_map, 746 (vm_offset_t) segbase, 747 (vm_offset_t) segbase + segs[i]->p_memsz, |
748 FALSE); | 748 VM_MAP_WIRE_SYSTEM|VM_MAP_WIRE_NOHOLES); |
749#endif 750 } 751 752#ifdef GPROF 753 /* Update profiling information with the new text segment. */ 754 kmupetext((uintfptr_t)(mapbase + segs[0]->p_vaddr - base_vaddr + 755 segs[0]->p_memsz)); 756#endif --- 557 unchanged lines hidden --- | 749#endif 750 } 751 752#ifdef GPROF 753 /* Update profiling information with the new text segment. */ 754 kmupetext((uintfptr_t)(mapbase + segs[0]->p_vaddr - base_vaddr + 755 segs[0]->p_memsz)); 756#endif --- 557 unchanged lines hidden --- |