Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69471
b: refs/heads/master
c: 3859810
h: refs/heads/master
i:
  69469: ddc7524
  69467: 83a3dad
  69463: c3e8f69
  69455: 587dfc1
  69439: ab9c91a
v: v3
  • Loading branch information
Adrian Bunk authored and Russell King committed Oct 12, 2007
1 parent 6988273 commit 6bd851b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e802dfab7bbbee1e63607a3e6d1ceb78ec4ceeb
refs/heads/master: 38598105217f65d21b5f5253c5755af9463c9e9a
2 changes: 1 addition & 1 deletion trunk/arch/arm/nwfpe/ARM-gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ a compiler does not support explicit inlining, this macro should be defined
to be `static'.
-------------------------------------------------------------------------------
*/
#define INLINE extern __inline__
#define INLINE static inline


/* For use as a GCC soft-float library we need some special function names. */
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/arm/nwfpe/fpa11.inl
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,28 @@
#include "fpa11.h"

/* Read and write floating point status register */
extern __inline__ unsigned int readFPSR(void)
static inline unsigned int readFPSR(void)
{
FPA11 *fpa11 = GET_FPA11();
return (fpa11->fpsr);
}

extern __inline__ void writeFPSR(FPSR reg)
static inline void writeFPSR(FPSR reg)
{
FPA11 *fpa11 = GET_FPA11();
/* the sysid byte in the status register is readonly */
fpa11->fpsr = (fpa11->fpsr & MASK_SYSID) | (reg & ~MASK_SYSID);
}

/* Read and write floating point control register */
extern __inline__ FPCR readFPCR(void)
static inline FPCR readFPCR(void)
{
FPA11 *fpa11 = GET_FPA11();
/* clear SB, AB and DA bits before returning FPCR */
return (fpa11->fpcr & ~MASK_RFC);
}

extern __inline__ void writeFPCR(FPCR reg)
static inline void writeFPCR(FPCR reg)
{
FPA11 *fpa11 = GET_FPA11();
fpa11->fpcr &= ~MASK_WFC; /* clear SB, AB and DA bits */
Expand Down
6 changes: 3 additions & 3 deletions trunk/include/asm-arm/arch-ixp23xx/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@

#ifndef __ASSEMBLY__

extern inline unsigned long ixp2000_reg_read(volatile void *reg)
static inline unsigned long ixp2000_reg_read(volatile void *reg)
{
return *((volatile unsigned long *)reg);
}

extern inline void ixp2000_reg_write(volatile void *reg, unsigned long val)
static inline void ixp2000_reg_write(volatile void *reg, unsigned long val)
{
*((volatile unsigned long *)reg) = val;
}

extern inline void ixp2000_reg_wrb(volatile void *reg, unsigned long val)
static inline void ixp2000_reg_wrb(volatile void *reg, unsigned long val)
{
*((volatile unsigned long *)reg) = val;
}
Expand Down

0 comments on commit 6bd851b

Please sign in to comment.