diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2023-03-15 11:00:19 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2023-04-13 17:36:27 +0200 |
commit | 898435203c115b164b96f30be7d9c790bbb50338 (patch) | |
tree | 4dd57b4613a725733bd5ea891c3e7e7db94bdda3 /arch/s390/boot | |
parent | s390/boot: do not change default_lma (diff) | |
download | linux-898435203c115b164b96f30be7d9c790bbb50338.tar.xz linux-898435203c115b164b96f30be7d9c790bbb50338.zip |
s390/boot: pin amode31 default lma
The special amode31 part of the kernel must always remain below 2Gb. Place
it just under vmlinux.default_lma by default, which makes it easier to
debug amode31 as its default lma is known 0x10000 - 0x3000 (currently,
amode31's size is 3 pages). This location is always available as it is
originally occupied by the vmlinux archive.
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot')
-rw-r--r-- | arch/s390/boot/startup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/boot/startup.c b/arch/s390/boot/startup.c index e1edb6186bee..45c30c2b1a7a 100644 --- a/arch/s390/boot/startup.c +++ b/arch/s390/boot/startup.c @@ -278,6 +278,7 @@ void startup_kernel(void) { unsigned long max_physmem_end; unsigned long vmlinux_lma = 0; + unsigned long amode31_lma; unsigned long asce_limit; unsigned long safe_addr; void *img; @@ -335,7 +336,8 @@ void startup_kernel(void) /* vmlinux decompression is done, shrink reserved low memory */ physmem_reserve(RR_DECOMPRESSOR, 0, (unsigned long)_decompressor_end); - physmem_alloc_range(RR_AMODE31, vmlinux.amode31_size, PAGE_SIZE, 0, SZ_2G, true); + amode31_lma = vmlinux.default_lma - vmlinux.amode31_size; + physmem_reserve(RR_AMODE31, amode31_lma, vmlinux.amode31_size); /* * The order of the following operations is important: |