setup.c (6262f661ff5d7d6a2613b95d0b7820c60b46b0b5) setup.c (b91540d52a08b65eb6a2b09132e1bd54fa82754c)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
4 * Chen Liqin <liqin.chen@sunplusct.com>
5 * Lennox Wu <lennox.wu@sunplusct.com>
6 * Copyright (C) 2012 Regents of the University of California
7 */
8
9#include <linux/init.h>
10#include <linux/mm.h>
11#include <linux/memblock.h>
12#include <linux/sched.h>
13#include <linux/console.h>
14#include <linux/screen_info.h>
15#include <linux/of_fdt.h>
16#include <linux/of_platform.h>
17#include <linux/sched/task.h>
18#include <linux/swiotlb.h>
19#include <linux/smp.h>
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
4 * Chen Liqin <liqin.chen@sunplusct.com>
5 * Lennox Wu <lennox.wu@sunplusct.com>
6 * Copyright (C) 2012 Regents of the University of California
7 */
8
9#include <linux/init.h>
10#include <linux/mm.h>
11#include <linux/memblock.h>
12#include <linux/sched.h>
13#include <linux/console.h>
14#include <linux/screen_info.h>
15#include <linux/of_fdt.h>
16#include <linux/of_platform.h>
17#include <linux/sched/task.h>
18#include <linux/swiotlb.h>
19#include <linux/smp.h>
20#include <linux/efi.h>
20
21#include <asm/cpu_ops.h>
22#include <asm/early_ioremap.h>
23#include <asm/setup.h>
24#include <asm/sections.h>
25#include <asm/sbi.h>
26#include <asm/tlbflush.h>
27#include <asm/thread_info.h>
28#include <asm/kasan.h>
21
22#include <asm/cpu_ops.h>
23#include <asm/early_ioremap.h>
24#include <asm/setup.h>
25#include <asm/sections.h>
26#include <asm/sbi.h>
27#include <asm/tlbflush.h>
28#include <asm/thread_info.h>
29#include <asm/kasan.h>
30#include <asm/efi.h>
29
30#include "head.h"
31
31
32#include "head.h"
33
32#ifdef CONFIG_DUMMY_CONSOLE
33struct screen_info screen_info = {
34#if defined(CONFIG_DUMMY_CONSOLE) || defined(CONFIG_EFI)
35struct screen_info screen_info __section(.data) = {
34 .orig_video_lines = 30,
35 .orig_video_cols = 80,
36 .orig_video_mode = 0,
37 .orig_video_ega_bx = 0,
38 .orig_video_isVGA = 1,
39 .orig_video_points = 8
40};
41#endif

--- 28 unchanged lines hidden (view full) ---

70 init_mm.end_data = (unsigned long) _edata;
71 init_mm.brk = (unsigned long) _end;
72
73 *cmdline_p = boot_command_line;
74
75 early_ioremap_setup();
76 parse_early_param();
77
36 .orig_video_lines = 30,
37 .orig_video_cols = 80,
38 .orig_video_mode = 0,
39 .orig_video_ega_bx = 0,
40 .orig_video_isVGA = 1,
41 .orig_video_points = 8
42};
43#endif

--- 28 unchanged lines hidden (view full) ---

72 init_mm.end_data = (unsigned long) _edata;
73 init_mm.brk = (unsigned long) _end;
74
75 *cmdline_p = boot_command_line;
76
77 early_ioremap_setup();
78 parse_early_param();
79
80 efi_init();
78 setup_bootmem();
79 paging_init();
80#if IS_ENABLED(CONFIG_BUILTIN_DTB)
81 unflatten_and_copy_device_tree();
82#else
83 if (early_init_dt_verify(__va(dtb_early_pa)))
84 unflatten_device_tree();
85 else

--- 36 unchanged lines hidden ---
81 setup_bootmem();
82 paging_init();
83#if IS_ENABLED(CONFIG_BUILTIN_DTB)
84 unflatten_and_copy_device_tree();
85#else
86 if (early_init_dt_verify(__va(dtb_early_pa)))
87 unflatten_device_tree();
88 else

--- 36 unchanged lines hidden ---