summaryrefslogtreecommitdiffstats
path: root/sys/boot/arm64/libarm64/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/arm64/libarm64/cache.c')
-rw-r--r--sys/boot/arm64/libarm64/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/arm64/libarm64/cache.c b/sys/boot/arm64/libarm64/cache.c
index 2b3c0b1..25766ef 100644
--- a/sys/boot/arm64/libarm64/cache.c
+++ b/sys/boot/arm64/libarm64/cache.c
@@ -67,7 +67,7 @@ cpu_flush_dcache(const void *ptr, size_t len)
cl_size = get_dcache_line_size();
/* Calculate end address to clean */
- end = (vm_offset_t)(ptr + len);
+ end = (vm_offset_t)ptr + (vm_offset_t)len;
/* Align start address to cache line */
addr = (vm_offset_t)ptr;
addr = rounddown2(addr, cl_size);
OpenPOWER on IntegriCloud