mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-03 12:16:24 -04:00
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:
parent
f61d254fda
commit
92712a11bf
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue