To make the decompressor relocatable, the early SCLP buffer with a fixed address must be replaced with a relocatable C buffer of the according size and alignment as required by SCLP. Introduce a new function sclp_early_set_buffer() into the SCLP driver which enables the decompressor to change the SCLP early buffer at any time. This will be useful when the decompressor becomes fully relocatable and might need to change the SCLP early buffer to one with an address < 2G as required by SCLP because it was loaded at an address >= 2G. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
39 lines
1.3 KiB
C
39 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef BOOT_BOOT_H
|
|
#define BOOT_BOOT_H
|
|
|
|
#include <asm/extable.h>
|
|
#include <linux/types.h>
|
|
|
|
void startup_kernel(void);
|
|
unsigned long detect_memory(void);
|
|
bool is_ipl_block_dump(void);
|
|
void store_ipl_parmblock(void);
|
|
void setup_boot_command_line(void);
|
|
void parse_boot_command_line(void);
|
|
void verify_facilities(void);
|
|
void print_missing_facilities(void);
|
|
void sclp_early_setup_buffer(void);
|
|
void print_pgm_check_info(void);
|
|
unsigned long get_random_base(unsigned long safe_addr);
|
|
void __printf(1, 2) decompressor_printk(const char *fmt, ...);
|
|
|
|
/* Symbols defined by linker scripts */
|
|
extern const char kernel_version[];
|
|
extern unsigned long memory_limit;
|
|
extern unsigned long vmalloc_size;
|
|
extern int vmalloc_size_set;
|
|
extern int kaslr_enabled;
|
|
extern char __boot_data_start[], __boot_data_end[];
|
|
extern char __boot_data_preserved_start[], __boot_data_preserved_end[];
|
|
extern char _sdma[], _edma[];
|
|
extern char _stext_dma[], _etext_dma[];
|
|
extern struct exception_table_entry _start_dma_ex_table[];
|
|
extern struct exception_table_entry _stop_dma_ex_table[];
|
|
extern char _decompressor_syms_start[], _decompressor_syms_end[];
|
|
extern char _stack_start[], _stack_end[];
|
|
|
|
unsigned long read_ipl_report(unsigned long safe_offset);
|
|
|
|
#endif /* BOOT_BOOT_H */
|