Messages in this thread | | | Date | Tue, 21 Jan 2020 20:38:51 -0800 (PST) | From | Paul Walmsley <> | Subject | Re: [PATCH 1/2] riscv: mm: add support for CONFIG_DEBUG_VIRTUAL |
| |
On Thu, 2 Jan 2020, Zong Li wrote:
> This patch implements CONFIG_DEBUG_VIRTUAL to do additional checks on > virt_to_phys and __pa_symbol calls. virt_to_phys used for linear mapping > check, and __pa_symbol used for kernel symbol check. In current RISC-V, > kernel image maps to linear mapping area. If CONFIG_DEBUG_VIRTUAL is > disable, these two functions calculate the offset on the address feded > directly without any checks.
Reviewed-by: Paul Walmsley <paul.walmsley@sifive.com> Tested-by: Paul Walmsley <paul.walmsley@sifive.com>
- Paul
| |