Added linker pool symbols and mpeg_init()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@700 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d45a2d2cc8
commit
88f7fb02bd
1 changed files with 13 additions and 0 deletions
13
apps/main.c
13
apps/main.c
|
@ -27,6 +27,9 @@
|
|||
#include "tree.h"
|
||||
#include "panic.h"
|
||||
#include "menu.h"
|
||||
#include "dmalloc.h"
|
||||
#include "bmalloc.h"
|
||||
#include "mpeg.h"
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
|
@ -35,9 +38,18 @@ void app_main(void)
|
|||
}
|
||||
|
||||
#ifndef SIMULATOR
|
||||
|
||||
/* defined in linker script */
|
||||
extern int poolstart[];
|
||||
extern int poolend[];
|
||||
|
||||
int init(void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
dmalloc_initialize();
|
||||
bmalloc_add_pool(poolstart, poolend-poolstart);
|
||||
|
||||
debug_init();
|
||||
kernel_init();
|
||||
set_irq_level(0);
|
||||
|
@ -55,6 +67,7 @@ int init(void)
|
|||
panicf("mount: %d",rc);
|
||||
|
||||
button_init();
|
||||
mpeg_init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue