]> Git Repo - linux.git/blame - arch/m68knommu/mm/memory.c
m68knommu: remove old cache management cruft from mm code
[linux.git] / arch / m68knommu / mm / memory.c
CommitLineData
1da177e4
LT
1/*
2 * linux/arch/m68knommu/mm/memory.c
3 *
4 * Copyright (C) 1998 Kenneth Albanowski <[email protected]>,
5 * Copyright (C) 1999-2002, Greg Ungerer ([email protected])
6 *
7 * Based on:
8 *
9 * linux/arch/m68k/mm/memory.c
10 *
11 * Copyright (C) 1995 Hamish Macdonald
12 */
13
1da177e4
LT
14#include <linux/mm.h>
15#include <linux/kernel.h>
16#include <linux/string.h>
17#include <linux/types.h>
18#include <linux/slab.h>
19
1da177e4
LT
20#include <asm/segment.h>
21#include <asm/page.h>
22#include <asm/pgtable.h>
23#include <asm/system.h>
1da177e4
LT
24
25/*
17d8725d
GU
26 * Map some physical address range into the kernel address space.
27 * The code is copied and adapted from map_chunk().
1da177e4
LT
28 */
29
30unsigned long kernel_map(unsigned long paddr, unsigned long size,
31 int nocacheflag, unsigned long *memavailp )
32{
33 return paddr;
34}
35
36
37int is_in_rom(unsigned long addr)
38{
39 extern unsigned long _ramstart, _ramend;
40
41 /*
42 * What we are really trying to do is determine if addr is
43 * in an allocated kernel memory region. If not then assume
44 * we cannot free it or otherwise de-allocate it. Ideally
45 * we could restrict this to really being in a ROM or flash,
46 * but that would need to be done on a board by board basis,
47 * not globally.
48 */
49 if ((addr < _ramstart) || (addr >= _ramend))
50 return(1);
51
52 /* Default case, not in ROM */
53 return(0);
54}
55
This page took 0.273537 seconds and 4 git commands to generate.