aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68knommu/mm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68knommu/mm')
-rw-r--r--arch/m68knommu/mm/memory.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/m68knommu/mm/memory.c b/arch/m68knommu/mm/memory.c
index 1a66b71035a4..f93b88b51f9f 100644
--- a/arch/m68knommu/mm/memory.c
+++ b/arch/m68knommu/mm/memory.c
@@ -33,23 +33,3 @@ unsigned long kernel_map(unsigned long paddr, unsigned long size,
33 return paddr; 33 return paddr;
34} 34}
35 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