mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* PBL console support
@ 2014-12-09 18:17 Sascha Hauer
  2014-12-09 18:17 ` [PATCH 1/9] PBL: Add strnlen, needed for printf support Sascha Hauer
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Sascha Hauer @ 2014-12-09 18:17 UTC (permalink / raw)
  To: barebox

This patchset adds simple console support for the PBL. Up to
now only simple functions like putc_ll, puthex_ll or puts_ll
could be used to print messages in the PBL. This series merely
moves everything away from lib/vsprintf.c which is not needed
for the PBL, enables lib/vsprintf.c and implements printf function
in the PBL which uses puts_ll as backend. Due to the use of
puts_ll the PBL console is still mainly for debugging.
Also some debug messages are added to the early ARM startup
functions to make it a bit easier to follow what's going on
there.

Sascha

----------------------------------------------------------------
Sascha Hauer (9):
      PBL: Add strnlen, needed for printf support
      printf: move panic() to common/misc.c
      printf: move simple_strto*() functions to separate file
      printf: use local isdigit/isalnum implementation
      Add PBL console support
      malloc: Add a function to detect if malloc pool is already initialized
      console: Make sure xzalloc is only used when it's available
      ARM: start.c: Add some debugging messages
      ARM: uncompress.c: Add some debugging messages

 arch/arm/cpu/start.c      |  11 +++++
 arch/arm/cpu/uncompress.c |   9 ++++
 common/Kconfig            |  11 +++++
 common/console_common.c   |   2 +-
 common/memory.c           |   8 ++++
 common/misc.c             |  22 ++++++++++
 include/malloc.h          |   2 +
 include/printk.h          |  15 ++++---
 include/stdio.h           |  20 +++++----
 lib/Makefile              |   3 ++
 lib/strtox.c              |  68 +++++++++++++++++++++++++++++
 lib/vsprintf.c            | 107 ++++++++--------------------------------------
 pbl/Makefile              |   1 +
 pbl/console.c             |  32 ++++++++++++++
 pbl/string.c              |  14 ++++++
 15 files changed, 220 insertions(+), 105 deletions(-)
 create mode 100644 lib/strtox.c
 create mode 100644 pbl/console.c

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-12-09 18:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-09 18:17 PBL console support Sascha Hauer
2014-12-09 18:17 ` [PATCH 1/9] PBL: Add strnlen, needed for printf support Sascha Hauer
2014-12-09 18:17 ` [PATCH 2/9] printf: move panic() to common/misc.c Sascha Hauer
2014-12-09 18:17 ` [PATCH 3/9] printf: move simple_strto*() functions to separate file Sascha Hauer
2014-12-09 18:17 ` [PATCH 4/9] printf: use local isdigit/isalnum implementation Sascha Hauer
2014-12-09 18:17 ` [PATCH 5/9] Add PBL console support Sascha Hauer
2014-12-09 18:17 ` [PATCH 6/9] malloc: Add a function to detect if malloc pool is already initialized Sascha Hauer
2014-12-09 18:17 ` [PATCH 7/9] console: Make sure xzalloc is only used when it's available Sascha Hauer
2014-12-09 18:17 ` [PATCH 8/9] ARM: start.c: Add some debugging messages Sascha Hauer
2014-12-09 18:17 ` [PATCH 9/9] ARM: uncompress.c: " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox