]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
93031595 SG |
2 | /* |
3 | * (C) Copyright 2016 Google, Inc | |
4 | * Written by Simon Glass <[email protected]> | |
93031595 SG |
5 | */ |
6 | ||
7 | #include <common.h> | |
30c7c434 | 8 | #include <cpu_func.h> |
a160092a | 9 | #include <debug_uart.h> |
691d719d | 10 | #include <init.h> |
a160092a | 11 | |
2c78a79e HS |
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; | |
a160092a SG |
20 | |
21 | void arch_setup_gd(gd_t *new_gd) | |
22 | { | |
23 | global_data_ptr = new_gd; | |
a160092a | 24 | } |
93031595 SG |
25 | |
26 | int cpu_has_64bit(void) | |
27 | { | |
28 | return true; | |
29 | } | |
30 | ||
31 | void enable_caches(void) | |
32 | { | |
33 | /* Not implemented */ | |
34 | } | |
35 | ||
36 | void disable_caches(void) | |
37 | { | |
38 | /* Not implemented */ | |
39 | } | |
40 | ||
41 | int dcache_status(void) | |
42 | { | |
43 | return true; | |
44 | } | |
45 | ||
46 | int x86_mp_init(void) | |
47 | { | |
48 | /* Not implemented */ | |
49 | return 0; | |
50 | } | |
1b408630 SG |
51 | |
52 | int misc_init_r(void) | |
53 | { | |
54 | return 0; | |
55 | } | |
56 | ||
b4d4f592 | 57 | #ifndef CONFIG_SYS_COREBOOT |
76d1d02f SG |
58 | int checkcpu(void) |
59 | { | |
60 | return 0; | |
61 | } | |
62 | ||
1b408630 SG |
63 | int print_cpuinfo(void) |
64 | { | |
65 | return 0; | |
66 | } | |
b4d4f592 | 67 | #endif |
c0069e9a SG |
68 | |
69 | int x86_cpu_reinit_f(void) | |
70 | { | |
71 | return 0; | |
72 | } |