subr_ntoskrnl.c (236213) | subr_ntoskrnl.c (254025) |
---|---|
1/*- 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/compat/ndis/subr_ntoskrnl.c 236213 2012-05-29 01:48:06Z kevlo $"); | 34__FBSDID("$FreeBSD: head/sys/compat/ndis/subr_ntoskrnl.c 254025 2013-08-07 06:21:20Z jeff $"); |
35 36#include <sys/ctype.h> 37#include <sys/unistd.h> 38#include <sys/param.h> 39#include <sys/types.h> 40#include <sys/errno.h> 41#include <sys/systm.h> 42#include <sys/malloc.h> --- 2441 unchanged lines hidden (view full) --- 2484 case MmCached: 2485 case MmHardwareCoherentCached: 2486 case MmUSWCCached: 2487 default: 2488 memattr = VM_MEMATTR_DEFAULT; 2489 break; 2490 } 2491 | 35 36#include <sys/ctype.h> 37#include <sys/unistd.h> 38#include <sys/param.h> 39#include <sys/types.h> 40#include <sys/errno.h> 41#include <sys/systm.h> 42#include <sys/malloc.h> --- 2441 unchanged lines hidden (view full) --- 2484 case MmCached: 2485 case MmHardwareCoherentCached: 2486 case MmUSWCCached: 2487 default: 2488 memattr = VM_MEMATTR_DEFAULT; 2489 break; 2490 } 2491 |
2492 ret = (void *)kmem_alloc_contig(kernel_map, size, M_ZERO | M_NOWAIT, | 2492 ret = (void *)kmem_alloc_contig(kernel_arena, size, M_ZERO | M_NOWAIT, |
2493 lowest, highest, PAGE_SIZE, boundary, memattr); 2494 if (ret != NULL) 2495 malloc_type_allocated(M_DEVBUF, round_page(size)); 2496 return (ret); 2497} 2498 2499static void 2500MmFreeContiguousMemory(base) --- 1957 unchanged lines hidden --- | 2493 lowest, highest, PAGE_SIZE, boundary, memattr); 2494 if (ret != NULL) 2495 malloc_type_allocated(M_DEVBUF, round_page(size)); 2496 return (ret); 2497} 2498 2499static void 2500MmFreeContiguousMemory(base) --- 1957 unchanged lines hidden --- |