2010-05-31 Ralf Corsépius <ralf.corsepius@rtems.org>

PR 1531/newlib
	* libchip/network/i82586.c:
	Add local copy of ALIGN().
This commit is contained in:
Ralf Corsepius
2010-05-31 12:22:38 +00:00
parent 85936516ee
commit 2d76aa85de
2 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2010-05-31 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1531/newlib
* libchip/network/i82586.c:
Add local copy of ALIGN().
2010-05-31 Ralf Corsépius <ralf.corsepius@rtems.org> 2010-05-31 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/network/cs8900.c: * libchip/network/cs8900.c:

View File

@@ -173,6 +173,15 @@ Mode of operation:
#include "i82586reg.h" #include "i82586reg.h"
#include "i82586var.h" #include "i82586var.h"
#if defined(ALIGNBYTES) && defined(ALIGN)
/* FIXME: Redefine because some versions of
* RTEMS newlib and the BSDs ship a broken ALIGN */
#undef ALIGN
#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) & ~ALIGNBYTES)
#else
#define ALIGN(p) (p)
#endif
/* /*
* A global way to change all async cmd requests at once. For RTEMS and running * A global way to change all async cmd requests at once. For RTEMS and running
* as tasks I wanted to see if the tx race condition is effected by this. * as tasks I wanted to see if the tx race condition is effected by this.