X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fcris%2Fkernel%2Fsetup.c;fp=arch%2Fcris%2Fkernel%2Fsetup.c;h=1ba57efff60d5efb96194a7bd0f88f81fa9a58a5;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=7af3d5d43e43b73466212ded824b131c46ba4886;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/arch/cris/kernel/setup.c b/arch/cris/kernel/setup.c index 7af3d5d43..1ba57efff 100644 --- a/arch/cris/kernel/setup.c +++ b/arch/cris/kernel/setup.c @@ -10,14 +10,14 @@ * This file handles the architecture-dependent parts of initialization */ +#include #include #include #include #include #include -#include +#include #include -#include #include @@ -88,6 +88,10 @@ setup_arch(char **cmdline_p) init_mm.end_data = (unsigned long) &_edata; init_mm.brk = (unsigned long) &_end; +#define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) +#define PFN_DOWN(x) ((x) >> PAGE_SHIFT) +#define PFN_PHYS(x) ((x) << PAGE_SHIFT) + /* min_low_pfn points to the start of DRAM, start_pfn points * to the first DRAM pages after the kernel, and max_low_pfn * to the end of DRAM.