fw: zeroise FW-RAM instead of RAM

Modify the loop to zeroise the FW-RAM instead of the
RAM. RAM is filled with random data at the start of main().

Changes firmware and bitstream digests.

Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
Joachim Strömbergson 2024-06-05 11:39:17 +02:00 committed by Michael Cardell Widerkrantz
parent f61d254fda
commit 92712a11bf
No known key found for this signature in database
GPG Key ID: D3DB3DDF57E704E5
3 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
621e2b838775564ce625bf6ce9def8b85a56f31768742ac05b6fb3a0b056ccc6 application_fpga.bin
c0da9e30042b87e0acbb01c9faf135b604f3f3b8cc1c7f7cc426d926bba785c1 application_fpga.bin

View File

@ -1 +1 @@
fdeda3316d3b27b21dfd7f626a87155c28fff6470173cc25e560d5e87f5ce6468146922a60e8ef31015769d67ccae519437975231d284a9a602c128d014f239c firmware.bin
d14bc9d8366505bc6f3312991d49ce7fe07d472fc936f4fabde4bf7d8775bde576268c79579d60f83e79de173a4217e00ecb1e04178db621cf9f332315485a73 firmware.bin

View File

@ -38,9 +38,9 @@ _start:
li x30,0
li x31,0
/* Clear all RAM */
li a0, 0x40000000 // TK1_RAM_BASE
li a1, 0x40020000 // TK1_RAM_BASE + TK1_RAM_SIZE
/* Clear FW_RAM */
li a0, 0xd0000000 // TK1_MMIO_FW_RAM_BASE
li a1, 0xd0000800 // TK1_MMIO_FW_RAM_BASE + TK1_MMIO_FW_RAM_SIZE
clear:
sw zero, 0(a0)
addi a0, a0, 4