From 5957a32fe2a3ccdb05514095f1ee234f4cf416ed Mon Sep 17 00:00:00 2001 From: Milton Miller Date: Tue, 6 Sep 2005 11:54:13 +1000 Subject: [PATCH] --- yaml --- r: 7291 b: refs/heads/master c: 41be31b7d61c661a63bb1d5c8be3c39f124beabd h: refs/heads/master i: 7289: 206d560e3a681911755655feef041ffb80a0c22b 7287: 9fbe239285752f163c9dbb2ef9c8f451b5240383 v: v3 --- [refs] | 2 +- trunk/arch/ppc64/xmon/start.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index fe048b7d46b5..5e510300c853 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cdcd318fefab8c8655fdc3b085ccc23848a93001 +refs/heads/master: 41be31b7d61c661a63bb1d5c8be3c39f124beabd diff --git a/trunk/arch/ppc64/xmon/start.c b/trunk/arch/ppc64/xmon/start.c index f86b584acd76..93bf8cb0a762 100644 --- a/trunk/arch/ppc64/xmon/start.c +++ b/trunk/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;