git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'sh-latest' of git://github.com/pmundt/linux-sh
[pandora-kernel.git]
/
arch
/
sh
/
include
/
asm
/
page.h
diff --git
a/arch/sh/include/asm/page.h
b/arch/sh/include/asm/page.h
index
822d608
..
0dca9a5
100644
(file)
--- a/
arch/sh/include/asm/page.h
+++ b/
arch/sh/include/asm/page.h
@@
-112,6
+112,16
@@
typedef struct page *pgtable_t;
#define __MEMORY_START CONFIG_MEMORY_START
#define __MEMORY_SIZE CONFIG_MEMORY_SIZE
#define __MEMORY_START CONFIG_MEMORY_START
#define __MEMORY_SIZE CONFIG_MEMORY_SIZE
+/*
+ * PHYSICAL_OFFSET is the offset in physical memory where the base
+ * of the kernel is loaded.
+ */
+#ifdef CONFIG_PHYSICAL_START
+#define PHYSICAL_OFFSET (CONFIG_PHYSICAL_START - __MEMORY_START)
+#else
+#define PHYSICAL_OFFSET 0
+#endif
+
/*
* PAGE_OFFSET is the virtual address of the start of kernel address
* space.
/*
* PAGE_OFFSET is the virtual address of the start of kernel address
* space.