fw: Init stack pointer to end of fw_ram

This commit is contained in:
Michael Cardell Widerkrantz 2023-03-10 12:10:22 +01:00 committed by Daniel Lublin
parent 2b9bfc0eff
commit 0a1e1db40e
No known key found for this signature in database
GPG Key ID: 75BD0FEB8D3E7830

View File

@ -47,9 +47,9 @@ clear:
blt a0, a1, clear
/*
* Init stack at top of fw_ram. Leave 16 byte for entering our first function
* Init stack at top of fw_ram.
*/
li sp, 0xd00007f0 // 2 kiB (TK1_MMIO_FW_RAM_SIZE) minus 16 byte
li sp, 0xd0000800 // 2 kiB (TK1_MMIO_FW_RAM_SIZE)
call main