X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fphysmem.c;h=84b191dae3eeb005cb81d62a443d0d5a1e6cec2c;hb=c2f3dade2a8efb90c20b46b3c76a81a15fafe96e;hp=f21ac243edccc88b86b2ee419c03385c8ad21974;hpb=65b3c6bbae072367cbcf07bdd2ec27dcd591c0b3;p=platform%2Fkernel%2Fu-boot.git diff --git a/lib/physmem.c b/lib/physmem.c index f21ac24..84b191d 100644 --- a/lib/physmem.c +++ b/lib/physmem.c @@ -9,14 +9,16 @@ */ #include +#include #include #include phys_addr_t __weak arch_phys_memset(phys_addr_t s, int c, phys_size_t n) { - void *s_ptr = (void *)(uintptr_t)s; + void *s_ptr = map_sysmem(s, n); assert(((phys_addr_t)(uintptr_t)s) == s); assert(((phys_addr_t)(uintptr_t)(s + n)) == s + n); + return (phys_addr_t)(uintptr_t)memset(s_ptr, c, n); }