lkml.org 
[lkml]   [2016]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH RESEND 12/12] of: Add sh support
    Date
    sh fdt access in VA. But memory reservation use PA.
    So sh need convert to PA.

    Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
    ---
    drivers/of/fdt.c | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
    index 3349d2a..fb357be 100644
    --- a/drivers/of/fdt.c
    +++ b/drivers/of/fdt.c
    @@ -593,6 +593,9 @@ void __init early_init_fdt_scan_reserved_mem(void)
    fdt_get_mem_rsv(initial_boot_params, n, &base, &size);
    if (!size)
    break;
    +#ifdef CONFIG_SUPERH
    + base = virt_to_phys(base);
    +#endif
    early_init_dt_reserve_memory_arch(base, size, 0);
    }

    --
    2.7.0
    \
     
     \ /
      Last update: 2016-05-01 07:21    [W:2.426 / U:0.524 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site