diff options
author | Nam Cao <namcao@linutronix.de> | 2024-06-07 23:22:11 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2024-09-12 17:23:00 +0300 |
commit | 75fdf791dff08470c035996f5d3e92c64491ce19 (patch) | |
tree | 39c5a7cfb2d9d8a89acbfbd6ec421844b27ff41d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 23311f57ee132b2584915d38955b6cf125e76022 (diff) | |
download | linux-75fdf791dff08470c035996f5d3e92c64491ce19.tar.xz |
riscv: drop the use of XIP_OFFSET in kernel_mapping_va_to_pa()
XIP_OFFSET is the hard-coded offset of writable data section within the
kernel.
By hard-coding this value, the read-only section of the kernel (which is
placed before the writable data section) is restricted in size.
As a preparation to remove this hard-coded macro XIP_OFFSET entirely,
remove the use of XIP_OFFSET in kernel_mapping_va_to_pa(). The macro
XIP_OFFSET is used in this case to check if the virtual address is mapped
to Flash or to RAM. The same check can be done with kernel_map.xiprom_sz.
Signed-off-by: Nam Cao <namcao@linutronix.de>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/644c13d9467525a06f5d63d157875a35b2edb4bc.1717789719.git.namcao@linutronix.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions