diff options
author | Tom Rini <trini@konsulko.com> | 2024-12-02 16:36:06 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-12-03 09:24:23 -0600 |
commit | c33be116dcc2fe78291b41c4680cf5f774c3a345 (patch) | |
tree | f4b51dfcf263de9d9dcfce4f2e6c95b585e2be0d /arch/sandbox/cpu/cache.c | |
parent | bc2a1b3c92825632b239f7021ff4ddfe84587df2 (diff) | |
parent | 0025e7e40c8e89b42fee06dcb67f60dd9fc912e5 (diff) |
Merge patch series "CI: Set up for an arm64 runner"
Tom Rini <trini@konsulko.com> says:
Hey all,
This is picking up Simon's v5 of the above-named series and making a few
more changes so that the follow-up series I have leads to arm64 being
supported for almost all jobs. To quote Simon's cover letter:
All gitlab runners are currently amd64 machines. This series attempts to
create a docker image which can also support arm64 so that sandbox tests
can be run on it.
The TARGET_... environment variables for grub could perhaps be adjusted,
using the new variables, but I have not done that for now.
Adding to what Simon said, we now build grub for all architectures as
the reason to install it was to be able to use the binaries in QEMU.
That won't provide us with amd64 binaries on arm64 hosts so we can't use
that shortcut anymore.
Link: https://lore.kernel.org/r/20241127172247.1488685-1-trini@konsulko.com
Diffstat (limited to 'arch/sandbox/cpu/cache.c')
-rw-r--r-- | arch/sandbox/cpu/cache.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/sandbox/cpu/cache.c b/arch/sandbox/cpu/cache.c index c8a5e64214b..96b3da47e8e 100644 --- a/arch/sandbox/cpu/cache.c +++ b/arch/sandbox/cpu/cache.c @@ -4,12 +4,18 @@ */ #include <cpu_func.h> +#include <mapmem.h> #include <asm/state.h> void flush_cache(unsigned long addr, unsigned long size) { + void *ptr; + + ptr = map_sysmem(addr, size); + /* Clang uses (char *) parameters, GCC (void *) */ - __builtin___clear_cache((void *)addr, (void *)(addr + size)); + __builtin___clear_cache(map_sysmem(addr, size), ptr + size); + unmap_sysmem(ptr); } void invalidate_icache_all(void) |