Simon Glass | 49a643b | 2021-11-03 21:09:07 -0600 | [diff] [blame] | 1 | // 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 Glass | 86ed9c5 | 2021-11-03 21:09:08 -0600 | [diff] [blame] | 10 | DECLARE_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 | */ |
| 19 | struct global_data *global_data_ptr = (struct global_data *)~0; |
| 20 | |
| 21 | void arch_setup_gd(gd_t *new_gd) |
| 22 | { |
| 23 | global_data_ptr = new_gd; |
| 24 | } |
| 25 | |
Simon Glass | 49a643b | 2021-11-03 21:09:07 -0600 | [diff] [blame] | 26 | int misc_init_r(void) |
| 27 | { |
| 28 | return 0; |
| 29 | } |
| 30 | |
| 31 | #ifndef CONFIG_SYS_COREBOOT |
| 32 | int checkcpu(void) |
| 33 | { |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | int print_cpuinfo(void) |
| 38 | { |
| 39 | return 0; |
| 40 | } |
| 41 | #endif |