decompressor.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | decompressor.c (f993d24a948d22710148dae2c48b8a87155f6cb9) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Definitions and wrapper functions for kernel decompressor 4 * 5 * Copyright IBM Corp. 2010 6 * 7 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> 8 */ --- 9 unchanged lines hidden (view full) --- 18#define STATIC static 19 20#undef memset 21#undef memcpy 22#undef memmove 23#define memmove memmove 24#define memzero(s, n) memset((s), 0, (n)) 25 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Definitions and wrapper functions for kernel decompressor 4 * 5 * Copyright IBM Corp. 2010 6 * 7 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> 8 */ --- 9 unchanged lines hidden (view full) --- 18#define STATIC static 19 20#undef memset 21#undef memcpy 22#undef memmove 23#define memmove memmove 24#define memzero(s, n) memset((s), 0, (n)) 25 |
26#ifdef CONFIG_KERNEL_BZIP2 | 26#if defined(CONFIG_KERNEL_BZIP2) |
27#define BOOT_HEAP_SIZE 0x400000 | 27#define BOOT_HEAP_SIZE 0x400000 |
28#elif CONFIG_KERNEL_ZSTD | 28#elif defined(CONFIG_KERNEL_ZSTD) |
29#define BOOT_HEAP_SIZE 0x30000 30#else 31#define BOOT_HEAP_SIZE 0x10000 32#endif 33 34static unsigned long free_mem_ptr = (unsigned long) _end; 35static unsigned long free_mem_end_ptr = (unsigned long) _end + BOOT_HEAP_SIZE; 36 --- 49 unchanged lines hidden --- | 29#define BOOT_HEAP_SIZE 0x30000 30#else 31#define BOOT_HEAP_SIZE 0x10000 32#endif 33 34static unsigned long free_mem_ptr = (unsigned long) _end; 35static unsigned long free_mem_end_ptr = (unsigned long) _end + BOOT_HEAP_SIZE; 36 --- 49 unchanged lines hidden --- |