make FireTOS always cold boot (clear sys vars)

This commit is contained in:
Markus Fröschle
2016-08-14 09:55:28 +00:00
parent d28c05918e
commit a0a6a36e0c
3 changed files with 8 additions and 2 deletions

View File

@@ -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 # can be either "Y" or "N" (without quotes). "Y" for using the m68k-elf-, "N" for using the m68k-atari-mint
# toolchain # toolchain
COMPILE_ELF=N COMPILE_ELF=Y
ifeq (Y,$(COMPILE_ELF)) ifeq (Y,$(COMPILE_ELF))
TCPREFIX=m68k-elf- TCPREFIX=m68k-elf-

View File

@@ -29,7 +29,7 @@
*/ */
#define MAJOR_VERSION 0 #define MAJOR_VERSION 0
#define MINOR_VERSION 9 #define MINOR_VERSION 91
#endif /* VERSION_H_ */ #endif /* VERSION_H_ */

View File

@@ -511,6 +511,12 @@ void BaS(void)
MCF_MMU_MMUCR = 0; /* MMU off */ MCF_MMU_MMUCR = 0; /* MMU off */
NOP(); /* force pipeline sync */ NOP(); /* force pipeline sync */
/*
* FireTOS wants to have the TOS system variables cleared
*/
memset((void *) 0x400, 0, 0x400);
/* ST RAM */ /* ST RAM */
* (uint32_t *) 0x42e = STRAM_END; /* phystop TOS system variable */ * (uint32_t *) 0x42e = STRAM_END; /* phystop TOS system variable */