From 18e72995d538babb06a38bfa52dfd4852dcbff97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sun, 14 Aug 2016 09:55:28 +0000 Subject: [PATCH] make FireTOS always cold boot (clear sys vars) --- BaS_gcc/Makefile | 2 +- BaS_gcc/include/version.h | 2 +- BaS_gcc/sys/BaS.c | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/BaS_gcc/Makefile b/BaS_gcc/Makefile index 5539e11..be1eec1 100644 --- a/BaS_gcc/Makefile +++ b/BaS_gcc/Makefile @@ -10,7 +10,7 @@ # can be either "Y" or "N" (without quotes). "Y" for using the m68k-elf-, "N" for using the m68k-atari-mint # toolchain -COMPILE_ELF=N +COMPILE_ELF=Y ifeq (Y,$(COMPILE_ELF)) TCPREFIX=m68k-elf- diff --git a/BaS_gcc/include/version.h b/BaS_gcc/include/version.h index bd6ac5b..d86f899 100644 --- a/BaS_gcc/include/version.h +++ b/BaS_gcc/include/version.h @@ -29,7 +29,7 @@ */ #define MAJOR_VERSION 0 -#define MINOR_VERSION 9 +#define MINOR_VERSION 91 #endif /* VERSION_H_ */ diff --git a/BaS_gcc/sys/BaS.c b/BaS_gcc/sys/BaS.c index d5a627b..b2a7f77 100644 --- a/BaS_gcc/sys/BaS.c +++ b/BaS_gcc/sys/BaS.c @@ -511,6 +511,12 @@ void BaS(void) MCF_MMU_MMUCR = 0; /* MMU off */ NOP(); /* force pipeline sync */ + + /* + * FireTOS wants to have the TOS system variables cleared + */ + memset((void *) 0x400, 0, 0x400); + /* ST RAM */ * (uint32_t *) 0x42e = STRAM_END; /* phystop TOS system variable */