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 #include <init.h>
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 
arch_setup_gd(gd_t * new_gd)21 void arch_setup_gd(gd_t *new_gd)
22 {
23 	global_data_ptr = new_gd;
24 }
25 
cpu_has_64bit(void)26 int cpu_has_64bit(void)
27 {
28 	return true;
29 }
30 
enable_caches(void)31 void enable_caches(void)
32 {
33 	/* Not implemented */
34 }
35 
disable_caches(void)36 void disable_caches(void)
37 {
38 	/* Not implemented */
39 }
40 
dcache_status(void)41 int dcache_status(void)
42 {
43 	return true;
44 }
45 
x86_mp_init(void)46 int x86_mp_init(void)
47 {
48 	/* Not implemented */
49 	return 0;
50 }
51 
misc_init_r(void)52 int misc_init_r(void)
53 {
54 	return 0;
55 }
56 
57 #ifndef CONFIG_SYS_COREBOOT
checkcpu(void)58 int checkcpu(void)
59 {
60 	return 0;
61 }
62 
print_cpuinfo(void)63 int print_cpuinfo(void)
64 {
65 	return 0;
66 }
67 #endif
68 
x86_cpu_reinit_f(void)69 int x86_cpu_reinit_f(void)
70 {
71 	return 0;
72 }
73 
cpu_phys_address_size(void)74 int cpu_phys_address_size(void)
75 {
76 	return CONFIG_CPU_ADDR_BITS;
77 }
78