summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-09-03 17:23:08 -0500
committerAaron Durbin <adurbin@chromium.org>2015-09-05 15:36:23 +0000
commit037581542b8e4571437ea34fb0244ad2ef43b6a3 (patch)
treef1ded4d98dd1f86cfaf424befdd63ecbcb01eaa8 /src
parent541b567167620c96de29c3bd1aec14c6742ae2b6 (diff)
downloadcoreboot-037581542b8e4571437ea34fb0244ad2ef43b6a3.tar.xz
symbols: add '_' to pci_drivers and cpu_drivers symbols
In order to prepare for more unification of the linker scripts prefix pci_drivers, epci_drivers, cpu_drivers, and ecpu_drivers with an underscore. BUG=chrome-os-partner:44827 BRANCH=None TEST=Built different boards includes ones w/ and w/o relocatable ramstage. Change-Id: I8918b38db3b754332e8d8506b424f3c6b3e06af8 Signed-off-by: Aaron Durbin <adubin@chromium.org> Reviewed-on: http://review.coreboot.org/11506 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/arch/arm64/cpu_ramstage.c2
-rw-r--r--src/arch/x86/cpu.c2
-rw-r--r--src/device/pci_device.c2
-rw-r--r--src/include/cpu/cpu.h4
-rw-r--r--src/include/device/pci.h4
-rw-r--r--src/lib/ramstage.ld8
-rw-r--r--src/lib/rmodule.ld8
7 files changed, 15 insertions, 15 deletions
diff --git a/src/arch/arm64/cpu_ramstage.c b/src/arch/arm64/cpu_ramstage.c
index 7b4b26a93d..a49bf48107 100644
--- a/src/arch/arm64/cpu_ramstage.c
+++ b/src/arch/arm64/cpu_ramstage.c
@@ -42,7 +42,7 @@ static struct cpu_driver *locate_cpu_driver(uint32_t midr)
{
struct cpu_driver *cur;
- for (cur = cpu_drivers; cur != ecpu_drivers; cur++) {
+ for (cur = _cpu_drivers; cur != _ecpu_drivers; cur++) {
const struct cpu_device_id *id_table = cur->id_table;
for (; id_table->midr != CPU_ID_END; id_table++) {
diff --git a/src/arch/x86/cpu.c b/src/arch/x86/cpu.c
index 3eb7b9439e..ceed0770e2 100644
--- a/src/arch/x86/cpu.c
+++ b/src/arch/x86/cpu.c
@@ -192,7 +192,7 @@ static void identify_cpu(struct device *cpu)
struct cpu_driver *find_cpu_driver(struct device *cpu)
{
struct cpu_driver *driver;
- for (driver = cpu_drivers; driver < ecpu_drivers; driver++) {
+ for (driver = _cpu_drivers; driver < _ecpu_drivers; driver++) {
struct cpu_device_id *id;
for (id = driver->id_table;
id->vendor != X86_VENDOR_INVALID; id++) {
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index 6332209a12..f2e4d5d2c1 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -850,7 +850,7 @@ static void set_pci_ops(struct device *dev)
* Look through the list of setup drivers and find one for
* this PCI device.
*/
- for (driver = &pci_drivers[0]; driver != &epci_drivers[0]; driver++) {
+ for (driver = &_pci_drivers[0]; driver != &_epci_drivers[0]; driver++) {
if ((driver->vendor == dev->vendor) &&
device_id_match(driver, dev->device)) {
dev->ops = (struct device_operations *)driver->ops;
diff --git a/src/include/cpu/cpu.h b/src/include/cpu/cpu.h
index 47521d45fe..28431c02b3 100644
--- a/src/include/cpu/cpu.h
+++ b/src/include/cpu/cpu.h
@@ -18,9 +18,9 @@ void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
#define __cpu_driver __attribute__ ((used,__section__(".rodata.cpu_driver")))
#ifndef __SIMPLE_DEVICE__
/** start of compile time generated pci driver array */
-extern struct cpu_driver cpu_drivers[];
+extern struct cpu_driver _cpu_drivers[];
/** end of compile time generated pci driver array */
-extern struct cpu_driver ecpu_drivers[];
+extern struct cpu_driver _ecpu_drivers[];
#endif
#endif /* !__PRE_RAM__ && !__SMM__ */
diff --git a/src/include/device/pci.h b/src/include/device/pci.h
index 2a76ba9e1c..fe31b54f2f 100644
--- a/src/include/device/pci.h
+++ b/src/include/device/pci.h
@@ -55,9 +55,9 @@ struct pci_driver {
#define __pci_driver __attribute__ ((used,__section__(".rodata.pci_driver")))
/** start of compile time generated pci driver array */
-extern struct pci_driver pci_drivers[];
+extern struct pci_driver _pci_drivers[];
/** end of compile time generated pci driver array */
-extern struct pci_driver epci_drivers[];
+extern struct pci_driver _epci_drivers[];
extern struct device_operations default_pci_ops_dev;
diff --git a/src/lib/ramstage.ld b/src/lib/ramstage.ld
index 432df40da6..b224827590 100644
--- a/src/lib/ramstage.ld
+++ b/src/lib/ramstage.ld
@@ -53,12 +53,12 @@
/* If any changes are made to the driver start/symbols or the
* section names the equivalent changes need to made to
* rmodule.ld. */
- pci_drivers = . ;
+ _pci_drivers = . ;
KEEP(*(.rodata.pci_driver));
- epci_drivers = . ;
- cpu_drivers = . ;
+ _epci_drivers = . ;
+ _cpu_drivers = . ;
KEEP(*(.rodata.cpu_driver));
- ecpu_drivers = . ;
+ _ecpu_drivers = . ;
_bs_init_begin = .;
KEEP(*(.bs_init));
LONG(0);
diff --git a/src/lib/rmodule.ld b/src/lib/rmodule.ld
index e6b4da717a..f5d5f061e5 100644
--- a/src/lib/rmodule.ld
+++ b/src/lib/rmodule.ld
@@ -42,13 +42,13 @@ SECTIONS
* ramstage with the rmodule linker. Any changes made in
* ramstage.ld should be made here as well. */
. = ALIGN(8);
- pci_drivers = . ;
+ _pci_drivers = . ;
KEEP(*(.rodata.pci_driver));
- epci_drivers = . ;
+ _epci_drivers = . ;
. = ALIGN(8);
- cpu_drivers = . ;
+ _cpu_drivers = . ;
KEEP(*(.rodata.cpu_driver));
- ecpu_drivers = . ;
+ _ecpu_drivers = . ;
. = ALIGN(8);
_bs_init_begin = .;
KEEP(*(.bs_init));