dect
/
linux-2.6
Archived
13
0
Fork 0

[MIPS] Move PHY_OFFSET definition in spaces.h

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Franck Bui-Huu 2007-06-04 17:46:34 +02:00 committed by Ralf Baechle
parent db38501511
commit 41b0483ee5
2 changed files with 9 additions and 9 deletions

View File

@ -12,6 +12,13 @@
#include <linux/const.h>
/*
* This gives the physical RAM offset.
*/
#ifndef PHYS_OFFSET
#define PHYS_OFFSET _AC(0, UL)
#endif
#ifdef CONFIG_32BIT
#define CAC_BASE _AC(0x80000000, UL)

View File

@ -34,12 +34,8 @@
#ifndef __ASSEMBLY__
/*
* This gives the physical RAM offset.
*/
#ifndef PHYS_OFFSET
#define PHYS_OFFSET 0UL
#endif
#include <linux/pfn.h>
#include <linux/io.h>
/*
* It's normally defined only for FLATMEM config but it's
@ -48,9 +44,6 @@
*/
#define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
#include <linux/pfn.h>
#include <asm/io.h>
extern void clear_page(void * page);
extern void copy_page(void * to, void * from);