/*1* Copyright (C) 1996 Paul Mackerras.2*3* This program is free software; you can redistribute it and/or4* modify it under the terms of the GNU General Public License5* as published by the Free Software Foundation; either version6* 2 of the License, or (at your option) any later version.7*/8#include <asm/machdep.h>9#include <asm/udbg.h>10#include "nonstdio.h"1112void xmon_map_scc(void)13{14}1516int xmon_write(const void *ptr, int nb)17{18return udbg_write(ptr, nb);19}2021int xmon_readchar(void)22{23if (udbg_getc)24return udbg_getc();25return -1;26}2728int xmon_read_poll(void)29{30if (udbg_getc_poll)31return udbg_getc_poll();32return -1;33}343536