powerpc/xmon: Make xmon_getchar() static
[linux-2.6-block.git] / arch / powerpc / xmon / start.c
CommitLineData
1da177e4
LT
1/*
2 * Copyright (C) 1996 Paul Mackerras.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 */
1da177e4 9#include <asm/machdep.h>
1da177e4 10#include <asm/udbg.h>
1da177e4
LT
11#include "nonstdio.h"
12
776568d4 13int xmon_write(const void *ptr, int nb)
1da177e4
LT
14{
15 return udbg_write(ptr, nb);
16}
17
fca5dcd4 18int xmon_readchar(void)
1da177e4 19{
fca5dcd4
PM
20 if (udbg_getc)
21 return udbg_getc();
22 return -1;
1da177e4 23}