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 51de8f061f
commit 18e72995d5
3 changed files with 8 additions and 2 deletions

View File

@@ -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 */