summaryrefslogtreecommitdiffstats
path: root/arch/ppc64/xmon/start.c
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2005-09-06 11:54:13 +1000
committerPaul Mackerras <paulus@samba.org>2005-09-06 16:07:35 +1000
commit41be31b7d61c661a63bb1d5c8be3c39f124beabd (patch)
treed3c9232bde8ac7aa83e20a36265847cf4b9716a3 /arch/ppc64/xmon/start.c
parentcdcd318fefab8c8655fdc3b085ccc23848a93001 (diff)
downloadop-kernel-dev-41be31b7d61c661a63bb1d5c8be3c39f124beabd.zip
op-kernel-dev-41be31b7d61c661a63bb1d5c8be3c39f124beabd.tar.gz
[PATCH] ppc64: dont bypass ppc_md.udbg* functions
udbg_getc_poll is a ppc_md function. don't call directly into udbg.c Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/xmon/start.c')
-rw-r--r--arch/ppc64/xmon/start.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/ppc64/xmon/start.c b/arch/ppc64/xmon/start.c
index f86b584..93bf8cb 100644
--- a/arch/ppc64/xmon/start.c
+++ b/arch/ppc64/xmon/start.c
@@ -61,7 +61,9 @@ xmon_read(void *handle, void *ptr, int nb)
int
xmon_read_poll(void)
{
- return udbg_getc_poll();
+ if (ppc_md.udbg_getc_poll)
+ return ppc_md.udbg_getc_poll();
+ return -1;
}
FILE *xmon_stdin;
OpenPOWER on IntegriCloud