summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2011-10-14 15:19:21 -0700
committerPatrick Georgi <patrick@georgi-clan.de>2011-10-15 16:21:06 +0200
commit1377491ac7a7bb75d6834bf79a219fd8ae1c03cd (patch)
tree495acdbf13b140e8a222fc5986ba2f81f8dae43c /src
parent328a694a3f2055c5e6a88ae51c9a8eefb61fd11c (diff)
downloadcoreboot-1377491ac7a7bb75d6834bf79a219fd8ae1c03cd.tar.xz
use byteorder.h instead of implementing another byte swap function
Change-Id: Id5fe7b597256ddf5d4ef408ec82cd94d84e7a0cd Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/277 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src')
-rw-r--r--src/boot/selfboot.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/boot/selfboot.c b/src/boot/selfboot.c
index 5f7a8f11f5..7ae9f8cd7d 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