blob: 294511e6ebabadf6460b6f9096a14d6a8391c710 [file] [log] [blame]
Simon Glass49a643b2021-11-03 21:09:07 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * (C) Copyright 2016 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
5 */
6
Simon Glass49a643b2021-11-03 21:09:07 -06007#include <init.h>
8
Simon Glass86ed9c52021-11-03 21:09:08 -06009DECLARE_GLOBAL_DATA_PTR;
10
11/*
12 * Global declaration of gd.
13 *
14 * As we write to it before relocation we have to make sure it is not put into
15 * a .bss section which may overlap a .rela section. Initialization forces it
16 * into a .data section which cannot overlap any .rela section.
17 */
18struct global_data *global_data_ptr = (struct global_data *)~0;
19
20void arch_setup_gd(gd_t *new_gd)
21{
22 global_data_ptr = new_gd;
23}
24
Simon Glass49a643b2021-11-03 21:09:07 -060025int misc_init_r(void)
26{
27 return 0;
28}
29
30#ifndef CONFIG_SYS_COREBOOT
31int checkcpu(void)
32{
33 return 0;
34}
35
36int print_cpuinfo(void)
37{
38 return 0;
39}
40#endif