diff options
Diffstat (limited to 'src/northbridge')
-rw-r--r-- | src/northbridge/amd/amdk8/f.h | 2 | ||||
-rw-r--r-- | src/northbridge/amd/amdk8/pre_f.h | 2 | ||||
-rw-r--r-- | src/northbridge/amd/amdk8/raminit.c | 3 | ||||
-rw-r--r-- | src/northbridge/amd/amdk8/raminit_f.c | 3 |
4 files changed, 7 insertions, 3 deletions
diff --git a/src/northbridge/amd/amdk8/f.h b/src/northbridge/amd/amdk8/f.h index 359a1d6283..db79fbf8d0 100644 --- a/src/northbridge/amd/amdk8/f.h +++ b/src/northbridge/amd/amdk8/f.h @@ -520,7 +520,7 @@ struct sys_info { #ifdef __PRE_RAM__ #include <arch/early_variables.h> -struct sys_info sysinfo_car CAR_GLOBAL; +extern struct sys_info sysinfo_car; #endif #include <reset.h> diff --git a/src/northbridge/amd/amdk8/pre_f.h b/src/northbridge/amd/amdk8/pre_f.h index 9c1eeb685c..abc51b111f 100644 --- a/src/northbridge/amd/amdk8/pre_f.h +++ b/src/northbridge/amd/amdk8/pre_f.h @@ -264,7 +264,7 @@ struct sys_info { #ifdef __PRE_RAM__ #include <arch/early_variables.h> -struct sys_info sysinfo_car CAR_GLOBAL; +extern struct sys_info sysinfo_car; #endif #endif /* AMDK8_PRE_F_H */ diff --git a/src/northbridge/amd/amdk8/raminit.c b/src/northbridge/amd/amdk8/raminit.c index 9f333fdaa9..48e2bb93bd 100644 --- a/src/northbridge/amd/amdk8/raminit.c +++ b/src/northbridge/amd/amdk8/raminit.c @@ -17,6 +17,9 @@ #include "option_table.h" #endif +#include <arch/early_variables.h> +struct sys_info sysinfo_car CAR_GLOBAL; + void setup_resource_map(const unsigned int *register_values, int max) { int i; diff --git a/src/northbridge/amd/amdk8/raminit_f.c b/src/northbridge/amd/amdk8/raminit_f.c index aa2349d39b..e7a14ec454 100644 --- a/src/northbridge/amd/amdk8/raminit_f.c +++ b/src/northbridge/amd/amdk8/raminit_f.c @@ -37,10 +37,11 @@ #define printk_raminit(args...) #endif +#include <arch/early_variables.h> +struct sys_info sysinfo_car CAR_GLOBAL; #include "f_pci.c" - /* for PCI_ADDR(0, 0x18, 2, 0x98) index, and PCI_ADDR(0x, 0x18, 2, 0x9c) data */ /* |