aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/amd/amdk8/raminit_f.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2017-04-07 09:24:02 +0200
committerMartin Roth <martinroth@google.com>2017-04-10 20:53:00 +0200
commitf170e71630bff4b181dbd5b209d9fb3f8ce35131 (patch)
tree6aed1e3342678cf606bd07372b443a5a88ec6d5b /src/northbridge/amd/amdk8/raminit_f.c
parent237a93c43e9d269926f34839ee88f00833701ce6 (diff)
nb/amdk8/(pre_)f.h: Don't declare global variable in header
This is needed if one wants to use the header more than once. Change-Id: I375d08465b6c64cd91e7563e3917764507d779ba Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/19029 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/northbridge/amd/amdk8/raminit_f.c')
-rw-r--r--src/northbridge/amd/amdk8/raminit_f.c3
1 files changed, 2 insertions, 1 deletions
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 */
/*