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>
This commit is contained in:
Aaron Durbin 2015-09-03 17:23:08 -05:00
parent 541b567167
commit 037581542b
7 changed files with 15 additions and 15 deletions

View File

@ -42,7 +42,7 @@ static struct cpu_driver *locate_cpu_driver(uint32_t midr)
{ {
struct cpu_driver *cur; 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; const struct cpu_device_id *id_table = cur->id_table;
for (; id_table->midr != CPU_ID_END; id_table++) { for (; id_table->midr != CPU_ID_END; id_table++) {

View File

@ -192,7 +192,7 @@ static void identify_cpu(struct device *cpu)
struct cpu_driver *find_cpu_driver(struct device *cpu) struct cpu_driver *find_cpu_driver(struct device *cpu)
{ {
struct cpu_driver *driver; 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; struct cpu_device_id *id;
for (id = driver->id_table; for (id = driver->id_table;
id->vendor != X86_VENDOR_INVALID; id++) { id->vendor != X86_VENDOR_INVALID; id++) {

View File

@ -850,7 +850,7 @@ static void set_pci_ops(struct device *dev)
* Look through the list of setup drivers and find one for * Look through the list of setup drivers and find one for
* this PCI device. * 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) && if ((driver->vendor == dev->vendor) &&
device_id_match(driver, dev->device)) { device_id_match(driver, dev->device)) {
dev->ops = (struct device_operations *)driver->ops; dev->ops = (struct device_operations *)driver->ops;

View File

@ -18,9 +18,9 @@ void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
#define __cpu_driver __attribute__ ((used,__section__(".rodata.cpu_driver"))) #define __cpu_driver __attribute__ ((used,__section__(".rodata.cpu_driver")))
#ifndef __SIMPLE_DEVICE__ #ifndef __SIMPLE_DEVICE__
/** start of compile time generated pci driver array */ /** 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 */ /** end of compile time generated pci driver array */
extern struct cpu_driver ecpu_drivers[]; extern struct cpu_driver _ecpu_drivers[];
#endif #endif
#endif /* !__PRE_RAM__ && !__SMM__ */ #endif /* !__PRE_RAM__ && !__SMM__ */

View File

@ -55,9 +55,9 @@ struct pci_driver {
#define __pci_driver __attribute__ ((used,__section__(".rodata.pci_driver"))) #define __pci_driver __attribute__ ((used,__section__(".rodata.pci_driver")))
/** start of compile time generated pci driver array */ /** 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 */ /** 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; extern struct device_operations default_pci_ops_dev;

View File

@ -53,12 +53,12 @@
/* If any changes are made to the driver start/symbols or the /* If any changes are made to the driver start/symbols or the
* section names the equivalent changes need to made to * section names the equivalent changes need to made to
* rmodule.ld. */ * rmodule.ld. */
pci_drivers = . ; _pci_drivers = . ;
KEEP(*(.rodata.pci_driver)); KEEP(*(.rodata.pci_driver));
epci_drivers = . ; _epci_drivers = . ;
cpu_drivers = . ; _cpu_drivers = . ;
KEEP(*(.rodata.cpu_driver)); KEEP(*(.rodata.cpu_driver));
ecpu_drivers = . ; _ecpu_drivers = . ;
_bs_init_begin = .; _bs_init_begin = .;
KEEP(*(.bs_init)); KEEP(*(.bs_init));
LONG(0); LONG(0);

View File

@ -42,13 +42,13 @@ SECTIONS
* ramstage with the rmodule linker. Any changes made in * ramstage with the rmodule linker. Any changes made in
* ramstage.ld should be made here as well. */ * ramstage.ld should be made here as well. */
. = ALIGN(8); . = ALIGN(8);
pci_drivers = . ; _pci_drivers = . ;
KEEP(*(.rodata.pci_driver)); KEEP(*(.rodata.pci_driver));
epci_drivers = . ; _epci_drivers = . ;
. = ALIGN(8); . = ALIGN(8);
cpu_drivers = . ; _cpu_drivers = . ;
KEEP(*(.rodata.cpu_driver)); KEEP(*(.rodata.cpu_driver));
ecpu_drivers = . ; _ecpu_drivers = . ;
. = ALIGN(8); . = ALIGN(8);
_bs_init_begin = .; _bs_init_begin = .;
KEEP(*(.bs_init)); KEEP(*(.bs_init));