xous-platonic/boot.resc
Sean Cross 9a7cda70ca boot: add reset script to reload the elf file
Signed-off-by: Sean Cross <sean@xobs.io>
2019-12-25 20:12:19 +08:00

18 lines
413 B
Plaintext

using sysbus
mach create
machine LoadPlatformDescription @platonic.repl
sysbus LoadELF @../kernel/target/riscv32i-unknown-none-elf/debug/xous-kernel
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