uncompress.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  *  linux/include/asm-arm/arch-ebsa110/uncompress.h
  3.  *
  4.  *  Copyright (C) 1996,1997,1998 Russell King
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License version 2 as
  8.  * published by the Free Software Foundation.
  9.  */
  10. /*
  11.  * This does not append a newline
  12.  */
  13. static void puts(const char *s)
  14. {
  15. unsigned long tmp1, tmp2;
  16. __asm__ __volatile__("
  17. ldrb %0, [%2], #1
  18. teq %0, #0
  19. beq 3f
  20. 1: strb %0, [%3]
  21. 2: ldrb %1, [%3, #0x14]
  22. and %1, %1, #0x60
  23. teq %1, #0x60
  24. bne 2b
  25. teq %0, #'n'
  26. moveq %0, #'r'
  27. beq 1b
  28. ldrb %0, [%2], #1
  29. teq %0, #0
  30. bne 1b
  31. 3: ldrb %1, [%3, #0x14]
  32. and %1, %1, #0x60
  33. teq %1, #0x60
  34. bne 3b
  35. "
  36.  : "=&r" (tmp1), "=&r" (tmp2)
  37.  : "0" (0), "1" (0), "r" (s), "r" (0xf0000be0) : "cc");
  38. }
  39. /*
  40.  * nothing to do
  41.  */
  42. #define arch_decomp_setup()
  43. #define arch_decomp_wdog()