~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/unicore32/include/mach/uncompress.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
13
#ifndef __MACH_PUV3_UNCOMPRESS_H__
 
14
#define __MACH_PUV3_UNCOMPRESS_H__
 
15
 
 
16
#include "hardware.h"
 
17
#include "ocd.h"
 
18
 
 
19
extern char input_data[];
 
20
extern char input_data_end[];
 
21
 
 
22
static void arch_decomp_puts(const char *ptr)
 
23
{
 
24
        char c;
 
25
 
 
26
        while ((c = *ptr++) != '\0') {
 
27
                if (c == '\n')
 
28
                        putc('\r');
 
29
                putc(c);
 
30
        }
 
31
}
 
32
#define ARCH_HAVE_DECOMP_PUTS
 
33
 
 
34
#endif /* __MACH_PUV3_UNCOMPRESS_H__ */