Changeset 874fb27f in rtems


Ignore:
Timestamp:
Apr 2, 2007, 12:01:49 PM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
9c948b79
Parents:
5da9ab14
Message:

Use uint*_t instead of char/short/int.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/shared/include/byteorder.h

    r5da9ab14 r874fb27f  
    2222#ifdef __GNUC__
    2323
    24 extern __inline__ unsigned ld_le16(volatile unsigned short *addr)
     24extern __inline__ unsigned ld_le16(volatile uint16_t *addr)
    2525{
    2626        unsigned val;
     
    3030}
    3131
    32 extern __inline__ void st_le16(volatile unsigned short *addr, unsigned val)
     32extern __inline__ void st_le16(volatile uint16_t *addr, unsigned val)
    3333{
    3434        __asm__ __volatile__ ("sthbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr));
    3535}
    3636
    37 extern __inline__ unsigned ld_le32(volatile unsigned *addr)
     37extern __inline__ unsigned ld_le32(volatile uint16_t *addr)
    3838{
    3939        unsigned val;
     
    4343}
    4444
    45 extern __inline__ void st_le32(volatile unsigned *addr, unsigned val)
     45extern __inline__ void st_le32(volatile uint32_t *addr, unsigned val)
    4646{
    4747        __asm__ __volatile__ ("stwbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr));
Note: See TracChangeset for help on using the changeset viewer.