xref: /openbmc/linux/arch/arm/boot/compressed/misc.h (revision f77d1a49)
1 #ifndef MISC_H
2 #define MISC_H
3 
4 #include <linux/compiler.h>
5 
6 void error(char *x) __noreturn;
7 extern unsigned long free_mem_ptr;
8 extern unsigned long free_mem_end_ptr;
9 void __div0(void);
10 void
11 decompress_kernel(unsigned long output_start, unsigned long free_mem_ptr_p,
12 		  unsigned long free_mem_ptr_end_p, int arch_id);
13 void fortify_panic(const char *name);
14 int atags_to_fdt(void *atag_list, void *fdt, int total_space);
15 uint32_t fdt_check_mem_start(uint32_t mem_start, const void *fdt);
16 int do_decompress(u8 *input, int len, u8 *output, void (*error)(char *x));
17 
18 extern char input_data[];
19 extern char input_data_end[];
20 
21 #endif
22