mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: PBL console support
Date: Tue,  9 Dec 2014 19:17:35 +0100	[thread overview]
Message-ID: <1418149064-26448-1-git-send-email-s.hauer@pengutronix.de> (raw)

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

             reply	other threads:[~2014-12-09 18:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-09 18:17 Sascha Hauer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1418149064-26448-1-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox