Use libcpu/byteorder.h for i386.

This commit is contained in:
Ralf Corsepius
2005-11-04 18:09:59 +00:00
parent 830976cda6
commit f82dabae42
2 changed files with 8 additions and 21 deletions

View File

@@ -61,6 +61,10 @@
#include <libcpu/io.h>
#endif
#if defined(__i386__)
#include <libcpu/byteorder.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
@@ -233,17 +237,6 @@ extern void Wait_X_ms( unsigned int timeToWait );
#define bus_to_phys(address) ((unsigned int) ((address)))
#define rtems_bsp_delay_in_bus_cycles(cycle) Wait_X_ms( cycle/100 )
#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PG_SIZE
static inline void st_le32(volatile uint32_t *addr, uint32_t value)
{
*(addr)=value ;
}
static inline uint32_t ld_le32(volatile uint32_t *addr)
{
return(*addr);
}
#endif
#if (MCLBYTES < RBUF_SIZE)

View File

@@ -90,6 +90,10 @@
#include <libcpu/io.h>
#endif
#if defined(__i386__)
#include <libcpu/byteorder.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
@@ -197,16 +201,6 @@ extern void Wait_X_ms( unsigned int timeToWait );
#define bus_to_phys(address) ((unsigned int) ((address)))
#define rtems_bsp_delay_in_bus_cycles(cycle) Wait_X_ms( cycle/100 )
#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PG_SIZE
static inline void st_le32(volatile uint32_t *addr, uint32_t value)
{
*(addr)=value ;
}
static inline uint32_t ld_le32(volatile uint32_t *addr)
{
return(*addr);
}
#endif
/* the actual duration waited in DELAY is not especially predictable,