arm: libpayload: Make cache invalidation take pointers instead of integers
This minor refactoring patch changes the signature of all limited cache invalidation functions in Coreboot and libpayload from unsigned long to void * for the address argument, since that's really what you have in 95% of the cases and I think it's ugly to have casting boilerplate all over the place. CQ-DEPEND=CL:167358 BUG=chrome-os-partner:21969 TEST=Make sure all payloads still compile cleanly when this and dependent changes are in. Change-Id: Ic9d3b2ea70b6aa8aea6647adae43ee2183b4e065 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/167338
This commit is contained in:
parent
d142ccdcd9
commit
d550bec944
6 changed files with 22 additions and 22 deletions
|
|
@ -125,7 +125,7 @@ static void exynos_displayport_init(device_t dev, u32 lcdbase,
|
|||
uint32_t lower = ALIGN_DOWN(lcdbase, MiB);
|
||||
uint32_t upper = ALIGN_UP(lcdbase + fb_size, MiB);
|
||||
|
||||
dcache_clean_invalidate_by_mva(lower, upper - lower);
|
||||
dcache_clean_invalidate_by_mva((void *)lower, upper - lower);
|
||||
mmu_config_range(lower / MiB, (upper - lower) / MiB, DCACHE_OFF);
|
||||
|
||||
printk(BIOS_DEBUG, "Initializing Exynos LCD.\n");
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ static void exynos_displayport_init(device_t dev, u32 lcdbase,
|
|||
uint32_t lower = ALIGN_DOWN(lcdbase, MiB);
|
||||
uint32_t upper = ALIGN_UP(lcdbase + fb_size, MiB);
|
||||
|
||||
dcache_clean_invalidate_by_mva(lower, upper - lower);
|
||||
dcache_clean_invalidate_by_mva((void *)lower, upper - lower);
|
||||
mmu_config_range(lower / MiB, (upper - lower) / MiB, DCACHE_OFF);
|
||||
|
||||
mmio_resource(dev, 1, lcdbase/KiB, (fb_size + KiB - 1)/KiB);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue