uncompress.h 826 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * linux/include/asm-arm/arch-shark/uncompress.h
  3. * by Alexander Schulz
  4. *
  5. * derived from:
  6. * linux/include/asm-arm/arch-ebsa285/uncompress.h
  7. * Copyright (C) 1996,1997,1998 Russell King
  8. */
  9. #define SERIAL_BASE ((volatile unsigned char *)0x400003f8)
  10. static __inline__ void putc(char c)
  11. {
  12. int t;
  13. SERIAL_BASE[0] = c;
  14. t=0x10000;
  15. while (t--);
  16. }
  17. /*
  18. * This does not append a newline
  19. */
  20. static void putstr(const char *s)
  21. {
  22. while (*s) {
  23. putc(*s);
  24. if (*s == '\n')
  25. putc('\r');
  26. s++;
  27. }
  28. }
  29. #ifdef DEBUG
  30. static void putn(unsigned long z)
  31. {
  32. int i;
  33. char x;
  34. putc('0');
  35. putc('x');
  36. for (i=0;i<8;i++) {
  37. x='0'+((z>>((7-i)*4))&0xf);
  38. if (x>'9') x=x-'0'+'A'-10;
  39. putc(x);
  40. }
  41. }
  42. static void putr()
  43. {
  44. putc('\n');
  45. putc('\r');
  46. }
  47. #endif
  48. /*
  49. * nothing to do
  50. */
  51. #define arch_decomp_setup()
  52. #define arch_decomp_wdog()