summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-01-27 23:02:50 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-28 08:18:44 +0100
commit7e22de9c3c786f23493bed6847887fe5f6787078 (patch)
treecb26c11356816e67163ab0308096ef98920cb702
parentc42178d9fcbd54ea1696929b5cd351b5683f6d9d (diff)
downloadbarebox-7e22de9c3c786f23493bed6847887fe5f6787078.tar.gz
barebox-7e22de9c3c786f23493bed6847887fe5f6787078.tar.xz
pbl: Add support for memory_display
The PBL has console support now, so add memory_display support aswell which can be a good debugging aid. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/Makefile1
-rw-r--r--pbl/console.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile
index 282ddbca25..ee5dca7023 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -1,5 +1,6 @@
obj-y += memory.o
obj-y += memory_display.o
+pbl-$(CONFIG_PBL_CONSOLE) += memory_display.o
obj-y += clock.o
obj-y += console_common.o
obj-y += startup.o
diff --git a/pbl/console.c b/pbl/console.c
index 3875e2aafd..a9859ad162 100644
--- a/pbl/console.c
+++ b/pbl/console.c
@@ -30,3 +30,13 @@ int pr_print(int level, const char *fmt, ...)
return i;
}
+
+int ctrlc(void)
+{
+ return 0;
+}
+
+void console_putc(unsigned int ch, char c)
+{
+ putc_ll(c);
+}