]> git.ipfire.org Git - people/ms/linux.git/blame - arch/h8300/mm/memory.c
Linux-2.6.12-rc2
[people/ms/linux.git] / arch / h8300 / mm / memory.c
CommitLineData
1da177e4
LT
1/*
2 * linux/arch/h8300/mm/memory.c
3 *
4 * Copyright (C) 2002 Yoshinori Sato <ysato@users.sourceforge.jp>,
5 *
6 * Based on:
7 *
8 * linux/arch/m68knommu/mm/memory.c
9 *
10 * Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>,
11 * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com)
12 *
13 * Based on:
14 *
15 * linux/arch/m68k/mm/memory.c
16 *
17 * Copyright (C) 1995 Hamish Macdonald
18 */
19
20#include <linux/config.h>
21#include <linux/mm.h>
22#include <linux/kernel.h>
23#include <linux/string.h>
24#include <linux/types.h>
25#include <linux/slab.h>
26
27#include <asm/setup.h>
28#include <asm/segment.h>
29#include <asm/page.h>
30#include <asm/pgtable.h>
31#include <asm/system.h>
32#include <asm/traps.h>
33#include <asm/io.h>
34
35void cache_clear (unsigned long paddr, int len)
36{
37}
38
39
40void cache_push (unsigned long paddr, int len)
41{
42}
43
44void cache_push_v (unsigned long vaddr, int len)
45{
46}
47
48/* Map some physical address range into the kernel address space. The
49 * code is copied and adapted from map_chunk().
50 */
51
52unsigned long kernel_map(unsigned long paddr, unsigned long size,
53 int nocacheflag, unsigned long *memavailp )
54{
55 return paddr;
56}
57
58#ifdef MAGIC_ROM_PTR
59
60int is_in_rom(unsigned long addr)
61{
62 /* Anything not in operational RAM is returned as in rom! */
63 if (addr < _ramstart || addr >= _ramend)
64 return 1;
65 else
66 return 0;
67}
68
69#endif
70