summaryrefslogtreecommitdiffstats
path: root/arch/riscv/boot/start.S
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2018-12-18 10:19:37 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-07 08:53:18 +0100
commit2f6839d44c7c93db733ff6862de728e964ea901d (patch)
treec1e3298fd7c451f39e49db21d69a12ce80737633 /arch/riscv/boot/start.S
parentaca96c01fa90dc859d3a3aed01d00a136603723a (diff)
downloadbarebox-2f6839d44c7c93db733ff6862de728e964ea901d.tar.gz
barebox-2f6839d44c7c93db733ff6862de728e964ea901d.tar.xz
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 <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/riscv/boot/start.S')
-rw-r--r--arch/riscv/boot/start.S8
1 files changed, 8 insertions, 0 deletions
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 <asm-generic/memory_layout.h>
+#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 */