fw: adjust for 2 KB of FW_RAM

Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
Daniel Lublin 2023-03-08 12:25:07 +01:00
parent c1fffcb70b
commit 425fdb4b90
No known key found for this signature in database
GPG Key ID: 75BD0FEB8D3E7830
2 changed files with 3 additions and 3 deletions

View File

@ -197,7 +197,7 @@ int main()
// clang-format off
asm volatile(
"li a0, 0xd0000000;" // FW_RAM
"li a1, 0xd0000400;" // End of FW_RAM
"li a1, 0xd0000800;" // End of 2 KB FW_RAM (just past the end)
"loop:;"
"sw zero, 0(a0);"
"addi a0, a0, 4;"

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 - Tillitis AB
* Copyright (C) 2022, 2023 - Tillitis AB
* SPDX-License-Identifier: GPL-2.0-only
*/
@ -49,7 +49,7 @@ clear:
/*
* Init stack at top of fw_ram. Leave 16 byte for entering our first function
*/
li sp, 0xd00003f0 // 1 kiB - 16 byte in FW_RAM
li sp, 0xd00007f0 // 2 kiB (TK1_MMIO_FW_RAM_SIZE) minus 16 byte
call main