aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2016-11-02 18:07:37 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-11-02 18:24:09 +1100
commit76c5eb99a6e8356ffd7479ec810d48c466dd6907 (patch)
tree9a6a7f41b88928f344b6f1c0cbdc5b789526e016 /core
parente6f180d10a6f09f9dcde28629a691debf2284169 (diff)
downloadskiboot-76c5eb99a6e8356ffd7479ec810d48c466dd6907.zip
skiboot-76c5eb99a6e8356ffd7479ec810d48c466dd6907.tar.gz
skiboot-76c5eb99a6e8356ffd7479ec810d48c466dd6907.tar.bz2
mambo: Convert console read/write from asm to C
Also changes the function name: mambo_read/write() -> mambo_console_read/write() Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/console.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/console.c b/core/console.c
index 1bdb0a7..f76ed40 100644
--- a/core/console.c
+++ b/core/console.c
@@ -67,7 +67,7 @@ static int mambo_char = -1;
static bool mambo_con_poll_read(void)
{
if (mambo_char < 0)
- mambo_char = mambo_read();
+ mambo_char = mambo_console_read();
return mambo_char >= 0;
}
@@ -87,7 +87,7 @@ static size_t mambo_con_read(char *buf, size_t len)
static size_t mambo_con_write(const char *buf, size_t len)
{
- mambo_write(buf, len);
+ mambo_console_write(buf, len);
return len;
}
@@ -243,7 +243,7 @@ static size_t inmem_read(char *buf, size_t req)
static void write_char(char c)
{
#ifdef MAMBO_DEBUG_CONSOLE
- mambo_write(&c, 1);
+ mambo_console_write(&c, 1);
#endif
inmem_write(c);
}