setup.c (3eb66e91a25497065c5322b1268cbc3953642227) | setup.c (f62e31623d718a7c20d9da98de48361624d7360a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 3 4#include <linux/console.h> 5#include <linux/memblock.h> 6#include <linux/initrd.h> 7#include <linux/of.h> 8#include <linux/of_fdt.h> --- 128 unchanged lines hidden (view full) --- 137 kmap_init(); 138#endif 139 140#if defined(CONFIG_VT) && defined(CONFIG_DUMMY_CONSOLE) 141 conswitchp = &dummy_con; 142#endif 143} 144 | 1// SPDX-License-Identifier: GPL-2.0 2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 3 4#include <linux/console.h> 5#include <linux/memblock.h> 6#include <linux/initrd.h> 7#include <linux/of.h> 8#include <linux/of_fdt.h> --- 128 unchanged lines hidden (view full) --- 137 kmap_init(); 138#endif 139 140#if defined(CONFIG_VT) && defined(CONFIG_DUMMY_CONSOLE) 141 conswitchp = &dummy_con; 142#endif 143} 144 |
145unsigned long phys_offset; 146EXPORT_SYMBOL(phys_offset); 147 |
|
145asmlinkage __visible void __init csky_start(unsigned int unused, void *param) 146{ 147 /* Clean up bss section */ 148 memset(__bss_start, 0, __bss_stop - __bss_start); 149 | 148asmlinkage __visible void __init csky_start(unsigned int unused, void *param) 149{ 150 /* Clean up bss section */ 151 memset(__bss_start, 0, __bss_stop - __bss_start); 152 |
153 phys_offset = read_mmu_msa0() & ~(SSEG_SIZE - 1); 154 |
|
150 pre_trap_init(); 151 pre_mmu_init(); 152 153 if (param == NULL) 154 early_init_dt_scan(__dtb_start); 155 else 156 early_init_dt_scan(param); 157 158 start_kernel(); 159 160 asm volatile("br .\n"); 161} | 155 pre_trap_init(); 156 pre_mmu_init(); 157 158 if (param == NULL) 159 early_init_dt_scan(__dtb_start); 160 else 161 early_init_dt_scan(param); 162 163 start_kernel(); 164 165 asm volatile("br .\n"); 166} |