boot.h (4f2c0a4acffbec01079c28f839422e64ddeff004) boot.h (9c3205b2b062420c26b33924b910880889acf832)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef BOOT_BOOT_H
3#define BOOT_BOOT_H
4
5#include <linux/types.h>
6
7#define IPL_START 0x200
8
9#ifndef __ASSEMBLY__
10
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef BOOT_BOOT_H
3#define BOOT_BOOT_H
4
5#include <linux/types.h>
6
7#define IPL_START 0x200
8
9#ifndef __ASSEMBLY__
10
11struct vmlinux_info {
12 unsigned long default_lma;
13 void (*entry)(void);
14 unsigned long image_size; /* does not include .bss */
15 unsigned long bss_size; /* uncompressed image .bss size */
16 unsigned long bootdata_off;
17 unsigned long bootdata_size;
18 unsigned long bootdata_preserved_off;
19 unsigned long bootdata_preserved_size;
20 unsigned long dynsym_start;
21 unsigned long rela_dyn_start;
22 unsigned long rela_dyn_end;
23 unsigned long amode31_size;
24};
25
11void startup_kernel(void);
12unsigned long detect_memory(void);
13bool is_ipl_block_dump(void);
14void store_ipl_parmblock(void);
26void startup_kernel(void);
27unsigned long detect_memory(void);
28bool is_ipl_block_dump(void);
29void store_ipl_parmblock(void);
30unsigned long read_ipl_report(unsigned long safe_offset);
15void setup_boot_command_line(void);
16void parse_boot_command_line(void);
17void verify_facilities(void);
18void print_missing_facilities(void);
19void sclp_early_setup_buffer(void);
20void print_pgm_check_info(void);
21unsigned long get_random_base(unsigned long safe_addr);
22void __printf(1, 2) decompressor_printk(const char *fmt, ...);
31void setup_boot_command_line(void);
32void parse_boot_command_line(void);
33void verify_facilities(void);
34void print_missing_facilities(void);
35void sclp_early_setup_buffer(void);
36void print_pgm_check_info(void);
37unsigned long get_random_base(unsigned long safe_addr);
38void __printf(1, 2) decompressor_printk(const char *fmt, ...);
39void error(char *m);
23
24/* Symbols defined by linker scripts */
25extern const char kernel_version[];
26extern unsigned long memory_limit;
27extern unsigned long vmalloc_size;
28extern int vmalloc_size_set;
29extern int kaslr_enabled;
30extern char __boot_data_start[], __boot_data_end[];
31extern char __boot_data_preserved_start[], __boot_data_preserved_end[];
32extern char _decompressor_syms_start[], _decompressor_syms_end[];
33extern char _stack_start[], _stack_end[];
40
41/* Symbols defined by linker scripts */
42extern const char kernel_version[];
43extern unsigned long memory_limit;
44extern unsigned long vmalloc_size;
45extern int vmalloc_size_set;
46extern int kaslr_enabled;
47extern char __boot_data_start[], __boot_data_end[];
48extern char __boot_data_preserved_start[], __boot_data_preserved_end[];
49extern char _decompressor_syms_start[], _decompressor_syms_end[];
50extern char _stack_start[], _stack_end[];
51extern char _end[];
52extern unsigned char _compressed_start[];
53extern unsigned char _compressed_end[];
54extern struct vmlinux_info _vmlinux_info;
55#define vmlinux _vmlinux_info
34
56
35unsigned long read_ipl_report(unsigned long safe_offset);
36
37#endif /* __ASSEMBLY__ */
38#endif /* BOOT_BOOT_H */
57#endif /* __ASSEMBLY__ */
58#endif /* BOOT_BOOT_H */