mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
minor patch: use run_address() instead duplicating in lib/lar.c
Signed-off-by: Alex Beregszaszi <alex@rtfs.hu> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@493 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
0416d548c5
commit
7d944735be
1 changed files with 1 additions and 3 deletions
|
@ -233,7 +233,6 @@ int copy_file(struct mem_file *archive, const char *filename, void *where)
|
||||||
*/
|
*/
|
||||||
int run_file(struct mem_file *archive, const char *filename, void *where)
|
int run_file(struct mem_file *archive, const char *filename, void *where)
|
||||||
{
|
{
|
||||||
int (*v) (void);
|
|
||||||
struct mem_file result;
|
struct mem_file result;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -261,8 +260,7 @@ int run_file(struct mem_file *archive, const char *filename, void *where)
|
||||||
where = result.start;
|
where = result.start;
|
||||||
}
|
}
|
||||||
printk(BIOS_SPEW, "where is %p\n", where);
|
printk(BIOS_SPEW, "where is %p\n", where);
|
||||||
v = where;
|
ret = run_address(where);
|
||||||
ret = v();
|
|
||||||
printk(BIOS_SPEW, "run_file returns with %d\n", ret);
|
printk(BIOS_SPEW, "run_file returns with %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue