From 02e75b2b67285111dc41e1a201ba49b20905f18b Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 17 Oct 2011 09:51:15 -0700 Subject: Use ntohll where appropriate. also clean out a local copy of ntohl in yabel. Change-Id: Iffe85a53c9ea25abeb3ac663870eb7eb4874a704 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/288 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/lib/cbfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/cbfs.c') diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index 20c9d4957a..33fa7999b6 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -116,7 +116,7 @@ void * cbfs_load_stage(const char *name) printk(BIOS_DEBUG, "Stage: done loading.\n"); entry = stage->entry; - // entry = ntohl((u32) stage->entry); + // entry = ntohll(stage->entry); return (void *) entry; } @@ -137,7 +137,7 @@ int cbfs_execute_stage(const char *name) /* FIXME: This isn't right */ printk(BIOS_INFO, "CBFS: run @ %p\n", (void *) ntohl((u32) stage->entry)); - return run_address((void *) ntohl((u32) stage->entry)); + return run_address((void *) (intptr_t)ntohll(stage->entry)); } /** -- cgit v1.2.3