提交 41be31b7 编写于 作者: M Milton Miller 提交者: Paul Mackerras

[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: NMilton Miller <miltonm@bga.com>
Signed-off-by: NAnton Blanchard <anton@samba.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 cdcd318f
...@@ -61,7 +61,9 @@ xmon_read(void *handle, void *ptr, int nb) ...@@ -61,7 +61,9 @@ xmon_read(void *handle, void *ptr, int nb)
int int
xmon_read_poll(void) 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; FILE *xmon_stdin;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册