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

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