1
0
Fork 0
forked from len0rd/rockbox

Enable buflib and core_alloc for warble.

Most of the work comes from http://gerrit.rockbox.org/r/#/c/1088/
by Thomas Jarosch.

Change-Id: Iaa673dad2388d1e44fc95ffaa14bafadc6158101
This commit is contained in:
Frank Gevaerts 2015-01-19 21:20:34 +01:00
parent 3ae0f32ac3
commit 163ca14e58
4 changed files with 25 additions and 0 deletions

View file

@ -33,6 +33,7 @@
#include <unistd.h>
#include "buffering.h" /* TYPE_PACKET_AUDIO */
#include "kernel.h"
#include "core_alloc.h"
#include "codecs.h"
#include "dsp_core.h"
#include "metadata.h"
@ -70,6 +71,16 @@ void debugf(const char *fmt, ...)
va_end(ap);
}
void panicf(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
exit (-1);
}
int find_first_set_bit(uint32_t value)
{
if (value == 0)
@ -888,6 +899,7 @@ int main(int argc, char **argv)
print_help(argv[0]);
exit(1);
}
core_allocator_init();
playback_init();
} else {
if (argc > 1)