summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@google.com>2013-11-17 11:07:25 -0800
committerRonald G. Minnich <rminnich@gmail.com>2013-11-18 18:41:57 +0100
commit7fda0e8e61682e66c956d3759a0ce39486dad747 (patch)
tree19b6b346a476fc52f5f720f8c87359b68a3b45f4 /src/lib
parent72f15bd2be37f5c28dae044aeec04aabb0db7326 (diff)
cbfs: remove unused code and prototype
The code is wrong (it's calling ntohl on an entry point that is actually already le due to an old cbfs bug) and nothing calls it any more anyway. Change-Id: Ief2c33faf99e3d2fc410524a5aae7bde378f088b Signed-off-by: Ronald G. Minnich <rminnich@google.com> Reviewed-on: http://review.coreboot.org/4090 Tested-by: build bot (Jenkins) Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cbfs.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index 4ccc9e6c30..23e1600304 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -292,25 +292,6 @@ void * cbfs_load_stage(struct cbfs_media *media, const char *name)
}
#endif /* CONFIG_RELOCATABLE_RAMSTAGE */
-int cbfs_execute_stage(struct cbfs_media *media, const char *name)
-{
- struct cbfs_stage *stage = (struct cbfs_stage *)
- cbfs_get_file_content(media, name, CBFS_TYPE_STAGE);
-
- if (stage == NULL)
- return 1;
-
- if (ntohl(stage->compression) != CBFS_COMPRESS_NONE) {
- LOG("Unable to run %s: Compressed file"
- "Not supported for in-place execution\n", name);
- return 1;
- }
-
- /* FIXME: This isn't right */
- LOG("run @ %p\n", (void *) ntohl((uint32_t) stage->entry));
- return run_address((void *)(uintptr_t)ntohll(stage->entry));
-}
-
#if !CONFIG_ALT_CBFS_LOAD_PAYLOAD
void *cbfs_load_payload(struct cbfs_media *media, const char *name)
{