[rtems commit] bsps/mips: Fix issues with -fno-common
Sebastian Huber
sebh at rtems.org
Sun Jul 5 16:00:53 UTC 2020
Module: rtems
Branch: master
Commit: 6a02c11b4ead1d2c8fdf8688f5758eeeb97be839
Changeset: http://git.rtems.org/rtems/commit/?id=6a02c11b4ead1d2c8fdf8688f5758eeeb97be839
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sun Jul 5 12:52:01 2020 +0200
bsps/mips: Fix issues with -fno-common
---
bsps/mips/malta/include/bsp/pci.h | 2 +-
bsps/mips/shared/irq/i8259.c | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/bsps/mips/malta/include/bsp/pci.h b/bsps/mips/malta/include/bsp/pci.h
index 8f12459..34ff6bc 100644
--- a/bsps/mips/malta/include/bsp/pci.h
+++ b/bsps/mips/malta/include/bsp/pci.h
@@ -110,7 +110,7 @@ int indirect_pci_write_config_dword(
/* Can these be moved to the rtems pci.h? */
int FindPCIbridge( int mybus, struct pcibridge *pb );
-const pci_config_access_functions pci_indirect_functions;
+extern const pci_config_access_functions pci_indirect_functions;
void pci_out_le32( uint32_t base, uint32_t addr, uint32_t val);
void pci_out_32( uint32_t base, uint32_t addr, uint32_t val);
diff --git a/bsps/mips/shared/irq/i8259.c b/bsps/mips/shared/irq/i8259.c
index d92b540..ffb6177 100644
--- a/bsps/mips/shared/irq/i8259.c
+++ b/bsps/mips/shared/irq/i8259.c
@@ -251,9 +251,8 @@ void BSP_i8259s_init(void)
#define PCI__GEN(bus, off, num) (((off)^((bus) << 7))+((num) << 4))
#define PCI_INTR_ACK(bus) PCI__GEN(bus, 0x0c34, 0)
-volatile uint8_t master;
-volatile uint8_t slave;
-volatile uint8_t temp;
+static volatile uint8_t master;
+static volatile uint8_t slave;
void bsp_show_interrupt_regs(void);
void bsp_show_interrupt_regs() {
More information about the vc
mailing list