More support for framebuffer and terminal coexistence.

This commit is contained in:
sorgelig
2019-05-24 01:20:50 +08:00
parent 6f4cf8da33
commit ac7ba6d115
9 changed files with 356 additions and 107 deletions

View File

@@ -11,6 +11,7 @@
#include <sys/stat.h>
#include "fpga_io.h"
#include "file_io.h"
#include "input.h"
#include "fpga_base_addr_ac5.h"
#include "fpga_manager.h"
@@ -628,6 +629,8 @@ void app_restart(const char *path)
sync();
fpga_core_reset(1);
input_switch(0);
char *appname = getappname();
printf("restarting the %s\n", appname);
execl(appname, appname, path, NULL);