From 2f6839d44c7c93db733ff6862de728e964ea901d Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Tue, 18 Dec 2018 10:19:37 +0300 Subject: RISC-V: add nmon nano-monitor nmon is a tiny (<1024 bytes) monitor program for the RV32I processors. It can operate with NO working RAM at all! It uses only the processor registers and NS16550-compatible UART port for operation, so it can be used for a memory controller setup code debugging. Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- arch/riscv/boot/start.S | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch/riscv/boot/start.S') diff --git a/arch/riscv/boot/start.S b/arch/riscv/boot/start.S index d13708740b..d1dbe48b7b 100644 --- a/arch/riscv/boot/start.S +++ b/arch/riscv/boot/start.S @@ -18,12 +18,20 @@ #include +#include "mach/debug_ll.h" + +#include "asm/riscv_nmon.h" + .text .section ".text_entry" .align 2 .globl _start _start: + debug_ll_ns16550_init + + riscv_nmon + li sp, STACK_BASE + STACK_SIZE /* copy barebox to link location */ -- cgit v1.2.3