start.c 542 B

1234567891011121314151617181920212223
  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. int xmon_write(const void *ptr, int nb)
  13. {
  14. return udbg_write(ptr, nb);
  15. }
  16. int xmon_readchar(void)
  17. {
  18. if (udbg_getc)
  19. return udbg_getc();
  20. return -1;
  21. }