int main(int argc, char **argv) { int32_t ret; uint8_t lcore_id; /* Signal */ signal(SIGINT,(void *)app_print); clrscr(); // call before the rte_eal_init() (void)rte_set_application_usage_hook(app_usage); init_probe(&probe); ret = rte_eal_init(argc, argv); if (ret < 0) rte_exit(EXIT_FAILURE, "Failed in rte_eal_init\n"); argc -= ret; argv += ret; ret = app_parse_args(argc, argv); if (ret < 0) rte_exit(EXIT_FAILURE, "Invalid arguments\n"); app_init(&probe); RTE_LCORE_FOREACH_SLAVE(lcore_id) { rte_eal_remote_launch(launch_probe, NULL, lcore_id); } rte_delay_ms(5000); // wait for the lcores to start up // Wait for all of the cores to stop runing and exit. clrscr(); app_logo(8, 0, APP_NAME); //process_hashtable(); rte_eal_mp_wait_lcore(); return 0; }
/*============================================================================== * - gui_init() * * - init gui */ int gui_init () { /* lcd init */ lcd_init (); /* touch screen init */ touch_screen_init (); /* add gui cmd */ gui_cmd_init (); /* start gui job thread */ gui_core_init (); /* init han zi */ han_init(); /* start logo app */ app_logo (); return 0; }