2 * linux/arch/m68knommu/mm/memory.c
4 * Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>,
5 * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com)
9 * linux/arch/m68k/mm/memory.c
11 * Copyright (C) 1995 Hamish Macdonald
15 #include <linux/kernel.h>
16 #include <linux/string.h>
17 #include <linux/types.h>
18 #include <linux/slab.h>
20 #include <asm/segment.h>
22 #include <asm/pgtable.h>
23 #include <asm/system.h>
26 * Map some physical address range into the kernel address space.
27 * The code is copied and adapted from map_chunk().
30 unsigned long kernel_map(unsigned long paddr, unsigned long size,
31 int nocacheflag, unsigned long *memavailp )