start.c 661 B

1234567891011121314151617181920212223242526272829303132333435
  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. void xmon_map_scc(void)
  13. {
  14. }
  15. int xmon_write(const void *ptr, int nb)
  16. {
  17. return udbg_write(ptr, nb);
  18. }
  19. int xmon_readchar(void)
  20. {
  21. if (udbg_getc)
  22. return udbg_getc();
  23. return -1;
  24. }
  25. int xmon_read_poll(void)
  26. {
  27. if (udbg_getc_poll)
  28. return udbg_getc_poll();
  29. return -1;
  30. }