start.c 571 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10 11 12
/*
 * Copyright (C) 1996 Paul Mackerras.
 *
 *      This program is free software; you can redistribute it and/or
 *      modify it under the terms of the GNU General Public License
 *      as published by the Free Software Foundation; either version
 *      2 of the License, or (at your option) any later version.
 */
#include <asm/machdep.h>
#include <asm/udbg.h>
#include "nonstdio.h"

13
void xmon_map_scc(void)
L
Linus Torvalds 已提交
14 15 16
{
}

17
int xmon_write(const void *ptr, int nb)
L
Linus Torvalds 已提交
18 19 20 21
{
	return udbg_write(ptr, nb);
}

22
int xmon_readchar(void)
L
Linus Torvalds 已提交
23
{
24 25 26
	if (udbg_getc)
		return udbg_getc();
	return -1;
L
Linus Torvalds 已提交
27
}