Stefan Reinauer (stefan.reinauer@coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/277
-gerrit
commit 027f405c81ed81698bc089a742a7e05a8b3d7ad4 Author: Stefan Reinauer reinauer@chromium.org Date: Fri Oct 14 15:19:21 2011 -0700
use byteorder.h instead of implementing another byte swap function
Change-Id: Id5fe7b597256ddf5d4ef408ec82cd94d84e7a0cd Signed-off-by: Stefan Reinauer reinauer@google.com --- src/boot/selfboot.c | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/src/boot/selfboot.c b/src/boot/selfboot.c index 5f7a8f1..7ae9f8c 100644 --- a/src/boot/selfboot.c +++ b/src/boot/selfboot.c @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA */
+#include <arch/byteorder.h> #include <console/console.h> #include <fallback.h> #include <boot/elf.h> @@ -30,13 +31,6 @@ #include <cbfs.h> #include <lib.h>
-#if !CONFIG_BIG_ENDIAN -#define ntohl(x) ( ((x&0xff)<<24) | ((x&0xff00)<<8) | \ - ((x&0xff0000) >> 8) | ((x&0xff000000) >> 24) ) -#else -#define ntohl(x) (x) -#endif - /* Maximum physical address we can use for the coreboot bounce buffer. */ #ifndef MAX_ADDR