diff options
author | Alexandre Ghiti <alex@ghiti.fr> | 2021-06-29 11:13:48 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-07-22 21:34:36 -0700 |
commit | db6b84a368b495cb7e41be9cb9e73d4d0537d027 (patch) | |
tree | eba21fdeb9b9b8238fb0cb08ef76226f5eec7e74 /arch/riscv/kernel | |
parent | c99127c452484ac89c75af39c3c865174ce2de99 (diff) |
riscv: Make sure the kernel mapping does not overlap with IS_ERR_VALUE
The check that is done in setup_bootmem currently only works for 32-bit
kernel since the kernel mapping has been moved outside of the linear
mapping for 64-bit kernel. So make sure that for 64-bit kernel, the kernel
mapping does not overlap with the last 4K of the addressable memory.
Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Fixes: 2bfc6cd81bd1 ("riscv: Move kernel mapping outside of linear mapping")
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/kernel')
0 files changed, 0 insertions, 0 deletions