UPSTREAM: 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.

BUG=none
BRANCH=none
TEST=none

Change-Id: If43ac3dafbb8e6b9052d6af9206d586d5a466ce1
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: f170e71630
Original-Change-Id: I375d08465b6c64cd91e7563e3917764507d779ba
Original-Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Original-Reviewed-on: https://review.coreboot.org/19029
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Kysti Mlkki <kyosti.malkki@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/474135
This commit is contained in:
Arthur Heymans 2017-04-07 09:24:02 +02:00 committed by chrome-bot
commit f6885aa26a
24 changed files with 27 additions and 3 deletions

View file

@ -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>

View file

@ -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 */

View file

@ -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;

View file

@ -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 */
/*