Changeset 0feb8085 in rtems


Ignore:
Timestamp:
Sep 25, 2009, 2:58:05 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
e89faf3e
Parents:
bc98089
Message:

2009-09-25 Joel Sherrill <joel.sherrill@…>

  • shared/include/io.h, shared/include/mmu.h: Change extern inline to static inline.
Location:
c/src/lib/libcpu/powerpc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    rbc98089 r0feb8085  
     12009-09-25      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * shared/include/io.h, shared/include/mmu.h: Change extern inline to
     4        static inline.
     5
    162009-08-27      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libcpu/powerpc/shared/include/io.h

    rbc98089 r0feb8085  
    5252 * completed before any further ones are issued.
    5353 */
    54 extern inline void eieio(void)
     54static inline void eieio(void)
    5555{
    5656        __asm__ __volatile__ ("eieio");
     
    6868 * 8, 16 and 32 bit, big and little endian I/O operations, with barrier.
    6969 */
    70 extern inline int in_8(volatile unsigned char *addr)
     70static inline int in_8(volatile unsigned char *addr)
    7171{
    7272        int ret;
     
    7676}
    7777
    78 extern inline void out_8(volatile unsigned char *addr, int val)
     78static inline void out_8(volatile unsigned char *addr, int val)
    7979{
    8080        __asm__ __volatile__("stb%U0%X0 %1,%0; eieio" : "=m" (*addr) : "r" (val));
    8181}
    8282
    83 extern inline int in_le16(volatile unsigned short *addr)
     83static inline int in_le16(volatile unsigned short *addr)
    8484{
    8585        int ret;
     
    9090}
    9191
    92 extern inline int in_be16(volatile unsigned short *addr)
     92static inline int in_be16(volatile unsigned short *addr)
    9393{
    9494        int ret;
     
    9898}
    9999
    100 extern inline void out_le16(volatile unsigned short *addr, int val)
     100static inline void out_le16(volatile unsigned short *addr, int val)
    101101{
    102102        __asm__ __volatile__("sthbrx %1,0,%2; eieio" : "=m" (*addr) :
     
    104104}
    105105
    106 extern inline void out_be16(volatile unsigned short *addr, int val)
     106static inline void out_be16(volatile unsigned short *addr, int val)
    107107{
    108108        __asm__ __volatile__("sth%U0%X0 %1,%0; eieio" : "=m" (*addr) : "r" (val));
    109109}
    110110
    111 extern inline unsigned in_le32(volatile unsigned *addr)
     111static inline unsigned in_le32(volatile unsigned *addr)
    112112{
    113113        unsigned ret;
     
    118118}
    119119
    120 extern inline unsigned in_be32(volatile unsigned *addr)
     120static inline unsigned in_be32(volatile unsigned *addr)
    121121{
    122122        unsigned ret;
     
    126126}
    127127
    128 extern inline void out_le32(volatile unsigned *addr, int val)
     128static inline void out_le32(volatile unsigned *addr, int val)
    129129{
    130130        __asm__ __volatile__("stwbrx %1,0,%2; eieio" : "=m" (*addr) :
     
    132132}
    133133
    134 extern inline void out_be32(volatile unsigned *addr, int val)
     134static inline void out_be32(volatile unsigned *addr, int val)
    135135{
    136136        __asm__ __volatile__("stw%U0%X0 %1,%0; eieio" : "=m" (*addr) : "r" (val));
  • c/src/lib/libcpu/powerpc/shared/include/mmu.h

    rbc98089 r0feb8085  
    166166
    167167/* invalidate a TLB entry */
    168 extern inline void _tlbie(unsigned long va)
     168static inline void _tlbie(unsigned long va)
    169169{
    170170        asm volatile ("tlbie %0" : : "r"(va));
Note: See TracChangeset for help on using the changeset viewer.