mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 15:41:36 +00:00
f1d3c53237
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>
12 lines
327 B
C
12 lines
327 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include "boot.h"
|
|
#include "../../../drivers/s390/char/sclp_early_core.c"
|
|
|
|
/* SCLP early buffer must stay page-aligned and below 2GB */
|
|
static char __sclp_early_sccb[EXT_SCCB_READ_SCP] __aligned(PAGE_SIZE);
|
|
|
|
void sclp_early_setup_buffer(void)
|
|
{
|
|
sclp_early_set_buffer(&__sclp_early_sccb);
|
|
}
|