BugID:16846667: restore init.h to its original state
@@ -20,16 +20,8 @@ extern int aos_kernel_init(kinit_t *kinit);
#ifdef AOS_BINS
#include <k_api.h>
-#define MAX_APP_BINS (3)
-
-#define APP_INFO_MAGIC (0xA7FC429E)
-
struct app_info_t {
-#if (RHINO_CONFIG_USER_SPACE > 0)
- void (*app_entry)(int argc, char *argv[]);
-#else
void (*app_entry)(void *ksyscall_tbl, void *fsyscall_tbl, int argc, char *argv[]);
-#endif
unsigned int data_ram_start;
unsigned int data_ram_end;
unsigned int data_flash_begin;
@@ -51,13 +43,7 @@ struct framework_info_t {
};
struct m_app_info_t {
-#if (RHINO_CONFIG_USER_SPACE > 0)
- void (*app_entry)(int pid ,int argc, char *argv[]);
-#else
void (*app_entry)(void *ksyscall_tbl, int argc, char *argv[]);
-#endif
- unsigned int text_flash_begin;
- unsigned int text_flash_end;
unsigned int data_ram_start;
unsigned int data_ram_end;
unsigned int data_flash_begin;
@@ -66,7 +52,7 @@ struct m_app_info_t {
unsigned int heap_start;
unsigned int heap_end;
/* reserve for other */
- unsigned int magic;
+ unsigned int reserve0;
unsigned int reserve1;
/* this bin_type must be here, 0x28, uniform with single bin & kernel bin,
arm cortex not used */
