Enhance wasm loader and interpreter, enhance code security and update document (#149)
This commit is contained in:
@ -193,7 +193,7 @@ display_input_read(wasm_module_inst_t module_inst,
|
||||
uint8 state;
|
||||
} *data_app;
|
||||
|
||||
lv_indev_data_t data;
|
||||
lv_indev_data_t data = {0};
|
||||
|
||||
ret = mouse_read(&data);
|
||||
|
||||
|
||||
@ -43,8 +43,9 @@ static char *uart_device = "/dev/ttyS2";
|
||||
static int baudrate = B115200;
|
||||
#endif
|
||||
|
||||
extern void * thread_timer_check(void *);
|
||||
extern void init_sensor_framework();
|
||||
extern void exit_sensor_framework();
|
||||
extern void exit_connection_framework();
|
||||
extern int aee_host_msg_callback(void *msg, uint16_t msg_len);
|
||||
extern bool init_connection_framework();
|
||||
|
||||
@ -470,9 +471,14 @@ int iwasm_main(int argc, char *argv[])
|
||||
vm_thread_create(&tid, func_uart_mode, NULL, BH_APPLET_PRESERVED_STACK_SIZE);
|
||||
#endif
|
||||
|
||||
// TODO:
|
||||
app_manager_startup(&interface);
|
||||
|
||||
fail1: bh_memory_destroy();
|
||||
exit_wasm_timer();
|
||||
exit_sensor_framework();
|
||||
exit_connection_framework();
|
||||
|
||||
fail1:
|
||||
bh_memory_destroy();
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
*/
|
||||
extern void iwasm_main(int argc, char *argv[]);
|
||||
extern int iwasm_main(int argc, char *argv[]);
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
iwasm_main(argc,argv);
|
||||
return iwasm_main(argc,argv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user