• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * linux/arch/unicore32/include/mach/uncompress.h
4  *
5  * Code specific to PKUnity SoC and UniCore ISA
6  *
7  * Copyright (C) 2001-2010 GUAN Xue-tao
8  */
9 
10 #ifndef __MACH_PUV3_UNCOMPRESS_H__
11 #define __MACH_PUV3_UNCOMPRESS_H__
12 
13 #include <mach/hardware.h>
14 #include <mach/ocd.h>
15 
16 extern char input_data[];
17 extern char input_data_end[];
18 
arch_decomp_puts(const char * ptr)19 static void arch_decomp_puts(const char *ptr)
20 {
21 	char c;
22 
23 	while ((c = *ptr++) != '\0') {
24 		if (c == '\n')
25 			putc('\r');
26 		putc(c);
27 	}
28 }
29 #define ARCH_HAVE_DECOMP_PUTS
30 
31 #endif /* __MACH_PUV3_UNCOMPRESS_H__ */
32