boot: add reset script to reload the elf file
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
		
							
								
								
									
										11
									
								
								boot.resc
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								boot.resc
									
									
									
									
									
								
							@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user