boot: add reset script to reload the elf file

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-12-25 20:12:19 +08:00
parent 74fb4b855e
commit 9a7cda70ca
1 changed files with 10 additions and 1 deletions

View File

@ -3,6 +3,15 @@ mach create
machine LoadPlatformDescription @platonic.repl
sysbus LoadELF @../kernel/target/riscv32i-unknown-none-elf/debug/xous-kernel
machine StartGdbServer 3333
machine StartGdbServer 3333 true
showAnalyzer uart
# The macro `reset` gets called implicitly when running `machine Reset`
macro reset
"""
sysbus LoadELF @../kernel/target/riscv32i-unknown-none-elf/debug/xous-kernel
"""
# cpu PC 0x20500000
runMacro $reset