
To avoid multi-stage initrd rescue operation and to simplify assumptions during early memory allocations move initrd at some final safe destination as early as possible. This would also allow us to drop .bss usage restrictions for some files. Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
23 lines
603 B
C
23 lines
603 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef BOOT_COMPRESSED_DECOMPRESSOR_H
|
|
#define BOOT_COMPRESSED_DECOMPRESSOR_H
|
|
|
|
#ifdef CONFIG_KERNEL_UNCOMPRESSED
|
|
static inline void *decompress_kernel(void) {}
|
|
#else
|
|
void *decompress_kernel(void);
|
|
#endif
|
|
unsigned long mem_safe_offset(void);
|
|
|
|
struct vmlinux_info {
|
|
unsigned long default_lma;
|
|
void (*entry)(void);
|
|
unsigned long image_size; /* does not include .bss */
|
|
unsigned long bss_size; /* uncompressed image .bss size */
|
|
};
|
|
|
|
extern char _vmlinux_info[];
|
|
#define vmlinux (*(struct vmlinux_info *)_vmlinux_info)
|
|
|
|
#endif /* BOOT_COMPRESSED_DECOMPRESSOR_H */
|