diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-15 14:21:20 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-16 08:58:49 -0500 |
commit | d4ab6611f3a809b7a177c3e4340f346f288588b7 (patch) | |
tree | 3e22f747e1792b63edde4507815a2e81051f5dc4 /c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c | |
parent | SH libcpu and libbsp: Fix warnings (diff) | |
download | rtems-d4ab6611f3a809b7a177c3e4340f346f288588b7.tar.bz2 |
powerpc/score603e: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c b/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c index 817037e6dc..999ab9390c 100644 --- a/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c +++ b/c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c @@ -1,6 +1,5 @@ /* - * - * COPYRIGHT (c) 1989-2009. + * COPYRIGHT (c) 1989-2014. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -25,10 +24,10 @@ * an UNIVERSE register, without sufficient delay, the second access will * not work correctly. */ -void PCI_bus_delay (void) +static void PCI_bus_delay (void) { - __asm__ (" nop"); - __asm__ (" nop"); + __asm__ volatile ("nop"); + __asm__ volatile ("nop"); } /* @@ -43,7 +42,7 @@ void PCI_bus_write( *_addr = _data; } -uint32_t PCI_bus_read( +uint32_t PCI_bus_read( volatile uint32_t * _addr /* IN */ ) { @@ -57,8 +56,7 @@ uint32_t PCI_bus_read( * PCI Configuration Cycle Read/Write Access which is used to access all of * devices registers on the PCI bus. i.e.: Universe, Ethernet & PMC. */ - -uint32_t Read_pci_device_register( +uint32_t Read_pci_device_register( uint32_t address ) { |