uncompress.h 708 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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(int c)
  11. {
  12. int t;
  13. SERIAL_BASE[0] = c;
  14. t=0x10000;
  15. while (t--);
  16. }
  17. static inline void flush(void)
  18. {
  19. }
  20. #ifdef DEBUG
  21. static void putn(unsigned long z)
  22. {
  23. int i;
  24. char x;
  25. putc('0');
  26. putc('x');
  27. for (i=0;i<8;i++) {
  28. x='0'+((z>>((7-i)*4))&0xf);
  29. if (x>'9') x=x-'0'+'A'-10;
  30. putc(x);
  31. }
  32. }
  33. static void putr()
  34. {
  35. putc('\n');
  36. putc('\r');
  37. }
  38. #endif
  39. /*
  40. * nothing to do
  41. */
  42. #define arch_decomp_setup()
  43. #define arch_decomp_wdog()