Bootcore feature

[MiSTer]
; lastcore - Autoboot the last loaded core (corename autosaved in CONFIG/lastcore.dat) first found on the SD/USB
; lastexactcore - Autoboot the last loaded exact core (corename_yyyymmdd.rbf autosaved in CONFIG/lastcore.dat) first found on the SD/USB
; corename - Autoboot first corename_*.rbf found on the SD/USB
; corename_yyyymmdd.rbf - Autoboot first corename_yyyymmdd.rbf found on the SD/USB
;bootcore=lastcore    ; uncomment to autoboot a core, as the last loaded core.
bootcore_timeout=10  ; 10-30 timeout before autoboot, comment for autoboot without timeout.
This commit is contained in:
Aitor Gómez
2019-03-13 06:04:26 +01:00
committed by GitHub
parent 9c7f1a8780
commit ee250685e1
15 changed files with 389 additions and 9 deletions

View File

@@ -31,6 +31,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "input.h"
#include "fpga_io.h"
#include "scheduler.h"
#include "bootcore.h"
const char *version = "$VER:HPS" VDATE;
@@ -65,6 +66,7 @@ int main(int argc, char *argv[])
}
FindStorage();
bootcore_init(argc > 1 ? argv[1] : "");
user_io_init((argc > 1) ? argv[1] : "");
scheduler_init();