blob: 691b67ff68ab97ead8d95920894d50c86d3fd57b [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
7#include <common.h>
8#include <init.h>
9
Simon Glass86ed9c52021-11-03 21:09:08 -060010DECLARE_GLOBAL_DATA_PTR;
11
12/*
13 * Global declaration of gd.
14 *
15 * As we write to it before relocation we have to make sure it is not put into
16 * a .bss section which may overlap a .rela section. Initialization forces it
17 * into a .data section which cannot overlap any .rela section.
18 */
19struct global_data *global_data_ptr = (struct global_data *)~0;
20
21void arch_setup_gd(gd_t *new_gd)
22{
23 global_data_ptr = new_gd;
24}
25
Simon Glass49a643b2021-11-03 21:09:07 -060026int misc_init_r(void)
27{
28 return 0;
29}
30
31#ifndef CONFIG_SYS_COREBOOT
32int checkcpu(void)
33{
34 return 0;
35}
36
37int print_cpuinfo(void)
38{
39 return 0;
40}
41#endif