xref: /haiku/src/system/libroot/os/arch/riscv64/cachectl.cpp (revision ed24eb5ff12640d052171c6a7feba37fab8a75d1)
1 /*
2  * Copyright 2021, Haiku, Inc.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #include <image.h>
7 
8 
9 extern "C" void
10 __riscv_flush_icache(void *start, void *end, unsigned long int flags)
11 {
12 	clear_caches(start, (uint8*)end - (uint8*)start, B_INVALIDATE_ICACHE);
13 }
14