decompress_unlz4.c (a02001086bbfb4da35d1228bebc2f1b442db455f) decompress_unlz4.c (2d3862d26e67a59340ba1cf1748196c76c5787de)
1/*
2 * Wrapper for decompressing LZ4-compressed kernel, initramfs, and initrd
3 *
4 * Copyright (C) 2013, LG Electronics, Kyungsik Lee <kyungsik.lee@lge.com>
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.

--- 182 unchanged lines hidden (view full) ---

191exit_1:
192 if (!output)
193 large_free(outp);
194exit_0:
195 return ret;
196}
197
198#ifdef PREBOOT
1/*
2 * Wrapper for decompressing LZ4-compressed kernel, initramfs, and initrd
3 *
4 * Copyright (C) 2013, LG Electronics, Kyungsik Lee <kyungsik.lee@lge.com>
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.

--- 182 unchanged lines hidden (view full) ---

191exit_1:
192 if (!output)
193 large_free(outp);
194exit_0:
195 return ret;
196}
197
198#ifdef PREBOOT
199STATIC int INIT decompress(unsigned char *buf, long in_len,
199STATIC int INIT __decompress(unsigned char *buf, long in_len,
200 long (*fill)(void*, unsigned long),
201 long (*flush)(void*, unsigned long),
200 long (*fill)(void*, unsigned long),
201 long (*flush)(void*, unsigned long),
202 unsigned char *output,
202 unsigned char *output, long out_len,
203 long *posp,
203 long *posp,
204 void(*error)(char *x)
204 void (*error)(char *x)
205 )
206{
207 return unlz4(buf, in_len - 4, fill, flush, output, posp, error);
208}
209#endif
205 )
206{
207 return unlz4(buf, in_len - 4, fill, flush, output, posp, error);
208}
209#endif