]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/freedom-metal/src/memory.c
Rename RISC-V_RV32_SiFive_HiFive1-FreedomStudio directory to RISC-V_RV32_SiFive_HiFiv...
[freertos] / FreeRTOS / Demo / RISC-V_RV32_SiFive_HiFive1_FreedomStudio / freedom-metal / src / memory.c
diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/freedom-metal/src/memory.c b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/freedom-metal/src/memory.c
deleted file mode 100644 (file)
index 05ab7ea..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/* Copyright 2019 SiFive, Inc */
-/* SPDX-License-Identifier: Apache-2.0 */
-
-#include <metal/machine.h>
-#include <metal/memory.h>
-
-struct metal_memory *metal_get_memory_from_address(const uintptr_t address) {
-       for(int i = 0; i < __METAL_DT_MAX_MEMORIES; i++) {
-               struct metal_memory *mem = __metal_memory_table[i];
-
-               uintptr_t lower_bound = metal_memory_get_base_address(mem);
-               uintptr_t upper_bound  = lower_bound + metal_memory_get_size(mem);
-
-               if((address >= lower_bound) && (address < upper_bound)) {
-                       return mem;
-               }
-       }
-
-       return NULL;
-}
-
-extern __inline__ uintptr_t metal_memory_get_base_address(const struct metal_memory *memory);
-extern __inline__ size_t metal_memory_get_size(const struct metal_memory *memory);
-extern __inline__ int metal_memory_supports_atomics(const struct metal_memory *memory);
-extern __inline__ int metal_memory_is_cachable(const struct metal_memory *memory);
-