X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fsh%2Finclude%2Fasm%2Fpage.h;h=0dca9a5c6be6f91b9a800b2f9bcca7fcf1f6e1fe;hb=cf0223503e6198292cdcc864e01eeb5fe7490752;hp=822d6084195b7397ff7eeff08fe33ce618630303;hpb=2e483528cebad089d0bb3f9aebb0ada22d968ffa;p=pandora-kernel.git diff --git a/arch/sh/include/asm/page.h b/arch/sh/include/asm/page.h index 822d6084195b..0dca9a5c6be6 100644 --- 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 +/* + * 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.