Commit 41b0483e authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Ralf Baechle

[MIPS] Move PHY_OFFSET definition in spaces.h

Signed-off-by: default avatarFranck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent db385015
...@@ -12,6 +12,13 @@ ...@@ -12,6 +12,13 @@
#include <linux/const.h> #include <linux/const.h>
/*
* This gives the physical RAM offset.
*/
#ifndef PHYS_OFFSET
#define PHYS_OFFSET _AC(0, UL)
#endif
#ifdef CONFIG_32BIT #ifdef CONFIG_32BIT
#define CAC_BASE _AC(0x80000000, UL) #define CAC_BASE _AC(0x80000000, UL)
......
...@@ -34,12 +34,8 @@ ...@@ -34,12 +34,8 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
/* #include <linux/pfn.h>
* This gives the physical RAM offset. #include <linux/io.h>
*/
#ifndef PHYS_OFFSET
#define PHYS_OFFSET 0UL
#endif
/* /*
* It's normally defined only for FLATMEM config but it's * It's normally defined only for FLATMEM config but it's
...@@ -48,9 +44,6 @@ ...@@ -48,9 +44,6 @@
*/ */
#define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET) #define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET)
#include <linux/pfn.h>
#include <asm/io.h>
extern void clear_page(void * page); extern void clear_page(void * page);
extern void copy_page(void * to, void * from); extern void copy_page(void * to, void * from);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment