From b6fb51acff5e0db473a2f62c1c21fd4603bdbd6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Tue, 2 Jul 2013 09:58:30 +0000 Subject: [PATCH] set FASTRAM_END for Firetos --- BaS_gcc/sources/sysinit.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BaS_gcc/sources/sysinit.c b/BaS_gcc/sources/sysinit.c index 1b15f28..0b39047 100644 --- a/BaS_gcc/sources/sysinit.c +++ b/BaS_gcc/sources/sysinit.c @@ -819,13 +819,18 @@ void initialize_hardware(void) { init_fbcs(); init_ddram(); init_fpga(); - /* FireTOS seems to have trouble to initialize the ST-RAM by itself, so... */ + /* Validate ST RAM */ * (volatile uint32_t *) 0x42e = STRAM_END; /* phystop TOS system variable */ * (volatile uint32_t *) 0x420 = 0x752019f3; /* memvalid TOS system variable */ * (volatile uint32_t *) 0x43a = 0x237698aa; /* memval2 TOS system variable */ * (volatile uint32_t *) 0x51a = 0x5555aaaa; /* memval3 TOS system variable */ + /* TT-RAM */ + + * (uint32_t *) 0x5a4 = FASTRAM_END; /* ramtop TOS system variable */ + * (uint32_t *) 0x5a8 = 0x1357bd13; /* ramvalid TOS system variable */ + /* Jump into FireTOS */ typedef void void_func(void); void_func* FireTOS = (void_func*)FIRETOS;