* fix some license headers
* add generic lib.h header for lib/ prototypes * fix some prototypes * put back return value parsing of stage2 Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@91 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
592d34e1fc
commit
15dfcd2198
6 changed files with 113 additions and 65 deletions
|
|
@ -19,13 +19,13 @@
|
|||
|
||||
#include <arch/types.h>
|
||||
#include <arch/io.h>
|
||||
#include <console/console.h>
|
||||
#include <console/loglevel.h>
|
||||
#include <lar.h>
|
||||
#include "config.h"
|
||||
|
||||
/* these prototypes should go into headers */
|
||||
void uart_init(void);
|
||||
int printk(int msg_level, const char *fmt, ...);
|
||||
void console_init(void);
|
||||
void die(const char *msg);
|
||||
int find_file(struct mem_file *archive, char *filename, struct mem_file *result);
|
||||
|
|
@ -200,7 +200,9 @@ printk(BIOS_INFO, "Start search at 0x%x, size %d\n", archive.start, archive.len)
|
|||
#endif
|
||||
);
|
||||
|
||||
(void) run_file(&archive, "normal/stage2", (void *)0x1000);
|
||||
ret = run_file(&archive, "normal/stage2", (void *)0x1000);
|
||||
if (ret)
|
||||
die("FATAL: Failed in stage2 code");
|
||||
|
||||
printk(BIOS_INFO, "Done stage2 code\n");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue