uncompress.h 719 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * linux/arch/unicore32/include/mach/uncompress.h
  3. *
  4. * Code specific to PKUnity SoC and UniCore ISA
  5. *
  6. * Copyright (C) 2001-2010 GUAN Xue-tao
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __MACH_PUV3_UNCOMPRESS_H__
  13. #define __MACH_PUV3_UNCOMPRESS_H__
  14. #include "hardware.h"
  15. #include "ocd.h"
  16. extern char input_data[];
  17. extern char input_data_end[];
  18. static void arch_decomp_puts(const char *ptr)
  19. {
  20. char c;
  21. while ((c = *ptr++) != '\0') {
  22. if (c == '\n')
  23. putc('\r');
  24. putc(c);
  25. }
  26. }
  27. #define ARCH_HAVE_DECOMP_PUTS
  28. #endif /* __MACH_PUV3_UNCOMPRESS_H__ */