On 30 December 2014 at 07:53, Bin Meng <bmeng...@gmail.com> wrote: > Introduce a gd->hose to save the pci hose in the early phase so that > apis in drivers/pci/pci.c can be used before relocation. Architecture > codes need assign a valid gd->hose in the early phase. > > Some variables are declared as static so change them to be either > stack variable or global data member so that they can be used before > relocation, except the 'indent' used by CONFIG_PCI_SCAN_SHOW which > just affects some print format. > > Signed-off-by: Bin Meng <bmeng...@gmail.com> > Acked-by: Simon Glass <s...@chromium.org> > > --- > > Changes in v3: None > Changes in v2: > - New patch to make pci apis usable before relocation > > arch/x86/cpu/pci.c | 8 ++++---- > arch/x86/include/asm/global_data.h | 1 - > arch/x86/include/asm/pci.h | 2 +- > drivers/pci/pci.c | 25 +++++++++++++++++-------- > include/asm-generic/global_data.h | 6 ++++++ > 5 files changed, 28 insertions(+), 14 deletions(-)
Applied to u-boot-x86/next, thanks! _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot