Add BootROM | Fix ResetWrangler for DDR | Add scripts
This commit is contained in:
20
fpga/src/main/resources/vcu118/sdboot/head.S
Normal file
20
fpga/src/main/resources/vcu118/sdboot/head.S
Normal file
@@ -0,0 +1,20 @@
|
||||
// See LICENSE for license details.
|
||||
#include <platform.h>
|
||||
#include <smp.h>
|
||||
#include "common.h"
|
||||
|
||||
.section .text.init
|
||||
.option norvc
|
||||
.globl _prog_start
|
||||
_prog_start:
|
||||
smp_pause(s1, s2)
|
||||
li sp, (PAYLOAD_DEST + 0xffff000)
|
||||
call main
|
||||
smp_resume(s1, s2)
|
||||
csrr a0, mhartid // hartid for next level bootloader
|
||||
la a1, dtb // dtb address for next level bootloader
|
||||
li s1, PAYLOAD_DEST
|
||||
jr s1
|
||||
|
||||
.section .rodata
|
||||
dtb:
|
||||
Reference in New Issue
Block a user