forked from len0rd/rockbox
Revert "Introduce a small api for loading code (codecs,plugins) from disk/memory."
I don't understand the build error at all, plugin_bss_start is clearly defined in plugin.lds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27901 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
73f057be6f
commit
97d2a6ec5c
7 changed files with 238 additions and 311 deletions
|
@ -32,8 +32,6 @@ PLUGIN_HEADER
|
|||
#define EXIT_MAGIC 0x0CDEBABE
|
||||
|
||||
extern enum plugin_status plugin_start(const void*);
|
||||
extern unsigned char plugin_bss_start[];
|
||||
extern unsigned char plugin_end_addr[];
|
||||
|
||||
static jmp_buf __exit_env;
|
||||
/* only 1 atexit handler for now, chain in the exit handler if you need more */
|
||||
|
@ -63,10 +61,6 @@ enum plugin_status plugin__start(const void *param)
|
|||
int exit_ret;
|
||||
enum plugin_status ret;
|
||||
|
||||
/* zero out the bss section */
|
||||
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
||||
rb->memset(plugin_bss_start, 0, plugin_end_addr - plugin_bss_start);
|
||||
#endif
|
||||
/* we come back here if exit() was called or the plugin returned normally */
|
||||
exit_ret = setjmp(__exit_env);
|
||||
if (exit_ret == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue