]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/xmon/nonstdio.c
powerpc/xmon: Merge start.c into nonstdio.c
[karo-tx-linux.git] / arch / powerpc / xmon / nonstdio.c
index 2209485e656452c1f90993f4bdd26327821af564..942d0f6b187459b5f8c9b1b3cda249883e6bef17 100644 (file)
@@ -7,9 +7,23 @@
  *      2 of the License, or (at your option) any later version.
  */
 #include <linux/string.h>
+#include <asm/udbg.h>
 #include <asm/time.h>
 #include "nonstdio.h"
 
+
+static int xmon_write(const void *ptr, int nb)
+{
+       return udbg_write(ptr, nb);
+}
+
+static int xmon_readchar(void)
+{
+       if (udbg_getc)
+               return udbg_getc();
+       return -1;
+}
+
 int xmon_putchar(int c)
 {
        char ch = c;