aboutsummaryrefslogtreecommitdiffstats
path: root/arch/openrisc/kernel/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/openrisc/kernel/setup.c')
-rw-r--r--arch/openrisc/kernel/setup.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/openrisc/kernel/setup.c b/arch/openrisc/kernel/setup.c
index d7359ffbcbdd..89c497813bab 100644
--- a/arch/openrisc/kernel/setup.c
+++ b/arch/openrisc/kernel/setup.c
@@ -40,6 +40,7 @@
40#include <linux/device.h> 40#include <linux/device.h>
41#include <linux/of_platform.h> 41#include <linux/of_platform.h>
42 42
43#include <asm/sections.h>
43#include <asm/segment.h> 44#include <asm/segment.h>
44#include <asm/pgtable.h> 45#include <asm/pgtable.h>
45#include <asm/types.h> 46#include <asm/types.h>
@@ -77,7 +78,7 @@ static unsigned long __init setup_memory(void)
77 78
78 ram_start_pfn = PFN_UP(memory_start); 79 ram_start_pfn = PFN_UP(memory_start);
79 /* free_ram_start_pfn is first page after kernel */ 80 /* free_ram_start_pfn is first page after kernel */
80 free_ram_start_pfn = PFN_UP(__pa(&_end)); 81 free_ram_start_pfn = PFN_UP(__pa(_end));
81 ram_end_pfn = PFN_DOWN(memblock_end_of_DRAM()); 82 ram_end_pfn = PFN_DOWN(memblock_end_of_DRAM());
82 83
83 max_pfn = ram_end_pfn; 84 max_pfn = ram_end_pfn;
@@ -290,10 +291,10 @@ void __init setup_arch(char **cmdline_p)
290 setup_cpuinfo(); 291 setup_cpuinfo();
291 292
292 /* process 1's initial memory region is the kernel code/data */ 293 /* process 1's initial memory region is the kernel code/data */
293 init_mm.start_code = (unsigned long)&_stext; 294 init_mm.start_code = (unsigned long)_stext;
294 init_mm.end_code = (unsigned long)&_etext; 295 init_mm.end_code = (unsigned long)_etext;
295 init_mm.end_data = (unsigned long)&_edata; 296 init_mm.end_data = (unsigned long)_edata;
296 init_mm.brk = (unsigned long)&_end; 297 init_mm.brk = (unsigned long)_end;
297 298
298#ifdef CONFIG_BLK_DEV_INITRD 299#ifdef CONFIG_BLK_DEV_INITRD
299 initrd_start = (unsigned long)&__initrd_start; 300 initrd_start = (unsigned long)&__initrd_start;