forked from len0rd/rockbox
Move load_firmware() to separate file
The idea is to share loading code between bootloaders and rolo(). Change-Id: I1656ed91946d7a05cb7c9fa7a16793c3c862a5cd Reviewed-on: http://gerrit.rockbox.org/190 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
This commit is contained in:
parent
46ea8bfe7c
commit
0b29691324
29 changed files with 727 additions and 608 deletions
|
|
@ -43,6 +43,8 @@
|
|||
#include "power.h"
|
||||
#include "file.h"
|
||||
#include "common.h"
|
||||
#include "rb-loader.h"
|
||||
#include "loader_strerror.h"
|
||||
#include "version.h"
|
||||
|
||||
/* Show the Rockbox logo - in show_logo.c */
|
||||
|
|
@ -170,11 +172,11 @@ void* main(void)
|
|||
|
||||
rc = load_firmware(loadbuffer, BOOTFILE, MAX_LOAD_SIZE);
|
||||
|
||||
if (rc < 0)
|
||||
if (rc <= EFILE_EMPTY)
|
||||
{
|
||||
error(EBOOTFILE,rc, true);
|
||||
}
|
||||
else if (rc == EOK)
|
||||
else
|
||||
{
|
||||
int(*kernel_entry)(void) = (void *) loadbuffer;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue