diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-05 12:52:01 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-05 12:56:01 +0200 |
commit | 6a02c11b4ead1d2c8fdf8688f5758eeeb97be839 (patch) | |
tree | a7353d15bbdb7e7883ac492f632de29d2b6cb464 /bsps/mips | |
parent | i386: Replace fpcr clobber with memory clobber (diff) | |
download | rtems-6a02c11b4ead1d2c8fdf8688f5758eeeb97be839.tar.bz2 |
bsps/mips: Fix issues with -fno-common
Diffstat (limited to 'bsps/mips')
-rw-r--r-- | bsps/mips/malta/include/bsp/pci.h | 2 | ||||
-rw-r--r-- | 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 8f12459a80..34ff6bc73d 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 d92b5400a9..ffb6177f2f 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() { |