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 <cpu_func.h> 9 #include <debug_uart.h> 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 */ 18 struct global_data *global_data_ptr = (struct global_data *)~0; 19 arch_setup_gd(gd_t * new_gd)20void arch_setup_gd(gd_t *new_gd) 21 { 22 global_data_ptr = new_gd; 23 } 24 cpu_has_64bit(void)25int cpu_has_64bit(void) 26 { 27 return true; 28 } 29 enable_caches(void)30void enable_caches(void) 31 { 32 /* Not implemented */ 33 } 34 disable_caches(void)35void disable_caches(void) 36 { 37 /* Not implemented */ 38 } 39 dcache_status(void)40int dcache_status(void) 41 { 42 return true; 43 } 44 x86_mp_init(void)45int x86_mp_init(void) 46 { 47 /* Not implemented */ 48 return 0; 49 } 50 misc_init_r(void)51int misc_init_r(void) 52 { 53 return 0; 54 } 55 checkcpu(void)56int checkcpu(void) 57 { 58 return 0; 59 } 60 print_cpuinfo(void)61int print_cpuinfo(void) 62 { 63 return 0; 64 } 65 x86_cpu_reinit_f(void)66int x86_cpu_reinit_f(void) 67 { 68 return 0; 69 } 70