summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2011-10-17 09:51:15 -0700
committerPatrick Georgi <patrick@georgi-clan.de>2011-10-21 14:14:32 +0200
commit02e75b2b67285111dc41e1a201ba49b20905f18b (patch)
tree7cbb48f997302a6905ca8a705b5a8f416fa3a3bb /src/lib
parent9ea33e9318cfec6fca403b663618cbfbfa9e1e96 (diff)
Use ntohll where appropriate.
also clean out a local copy of ntohl in yabel. Change-Id: Iffe85a53c9ea25abeb3ac663870eb7eb4874a704 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/288 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cbfs.c4
1 files changed, 2 insertions, 2 deletions
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));
}
/**