PageRenderTime 21ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 0ms app.codeStats 0ms

/arch/powerpc/xmon/start.c

https://bitbucket.org/abioy/linux
C | 34 lines | 22 code | 4 blank | 8 comment | 2 complexity | 2817df4c6456087d4f30c0bc135b080a MD5 | raw file
Possible License(s): CC-BY-SA-3.0, GPL-2.0, LGPL-2.0, AGPL-1.0
 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 */
 9#include <asm/machdep.h>
10#include <asm/udbg.h>
11#include "nonstdio.h"
12
13void xmon_map_scc(void)
14{
15}
16
17int xmon_write(const void *ptr, int nb)
18{
19	return udbg_write(ptr, nb);
20}
21
22int xmon_readchar(void)
23{
24	if (udbg_getc)
25		return udbg_getc();
26	return -1;
27}
28
29int xmon_read_poll(void)
30{
31	if (udbg_getc_poll)
32		return udbg_getc_poll();
33	return -1;
34}