diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-03-18 22:25:49 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-03-18 22:25:49 +0000 |
commit | ab0190962393330008e61963b5ab9ea8970fbb51 (patch) | |
tree | a508327fdd77df043280f6892c93551596dae8d2 /arch/mips64 | |
parent | 95333c0084ebec4e9c576745d569f150dc469b44 (diff) |
Some remaining bits of the ARC memory cleanup, from Keith.
Diffstat (limited to 'arch/mips64')
-rw-r--r-- | arch/mips64/arc/memory.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/arch/mips64/arc/memory.c b/arch/mips64/arc/memory.c index 0942a695a..6118024d2 100644 --- a/arch/mips64/arc/memory.c +++ b/arch/mips64/arc/memory.c @@ -1,7 +1,6 @@ /* - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. + * memory.c: PROM library functions for acquiring/using memory descriptors + * given to us from the ARCS firmware. * * Copyright (C) 1996 by David S. Miller * Copyright (C) 1999, 2000, 2001 by Ralf Baechle @@ -58,26 +57,20 @@ static char *arc_mtypes[8] = { #define mtypes(a) (prom_flags & PROM_FLAG_ARCS) ? arcs_mtypes[a.arcs] : arc_mtypes[a.arc] #endif -static struct prom_pmemblock pblocks[PROM_MAX_PMEMBLOCKS]; - -#define MEMTYPE_DONTUSE 0 -#define MEMTYPE_PROM 1 -#define MEMTYPE_FREE 2 - static inline int memtype_classify_arcs (union linux_memtypes type) { switch (type.arcs) { case arcs_fcontig: case arcs_free: - return MEMTYPE_FREE; + return BOOT_MEM_RAM; case arcs_atmp: - return MEMTYPE_PROM; + return BOOT_MEM_ROM_DATA; case arcs_eblock: case arcs_rvpage: case arcs_bmem: case arcs_prog: case arcs_aperm: - return MEMTYPE_DONTUSE; + return BOOT_MEM_RESERVED; default: BUG(); } |