mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
powerpc/io: The eieio() function clashes with FreeBSD. Change.
Closes #4021
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
* Acts as a barrier to ensure all previous I/O accesses have
|
||||
* completed before any further ones are issued.
|
||||
*/
|
||||
static inline void eieio(void)
|
||||
static inline void io_eieio(void)
|
||||
{
|
||||
__asm__ __volatile__ ("eieio");
|
||||
}
|
||||
@@ -59,9 +59,9 @@ static inline void eieio(void)
|
||||
/* Enforce in-order execution of data I/O.
|
||||
* No distinction between read/write on PPC; use eieio for all three.
|
||||
*/
|
||||
#define iobarrier_rw() eieio()
|
||||
#define iobarrier_r() eieio()
|
||||
#define iobarrier_w() eieio()
|
||||
#define iobarrier_rw() io_eieio()
|
||||
#define iobarrier_r() io_eieio()
|
||||
#define iobarrier_w() io_eieio()
|
||||
|
||||
/*
|
||||
* 8, 16 and 32 bit, big and little endian I/O operations, with barrier.
|
||||
|
||||
Reference in New Issue
Block a user