Branch data Line data Source code
1 : : /*
2 : : * Copyright (c) 2026 Intel Corporation
3 : : *
4 : : * SPDX-License-Identifier: Apache-2.0
5 : : */
6 : :
7 : : #include <zephyr/arch/common/instr_mem.h>
8 : :
9 : 0 : __weak bool arch_is_instr_mem(const void *addr, size_t len)
10 : : {
11 : 0 : ARG_UNUSED(addr);
12 : 0 : ARG_UNUSED(len);
13 : :
14 : : #ifndef CONFIG_HARVARD
15 : 0 : return true;
16 : : #else
17 : : return false;
18 : : #endif
19 : : }
20 : :
21 : 0 : __weak void *arch_memset_instr(void *buf, int c, size_t n)
22 : : {
23 : 0 : return memset(buf, c, n);
24 : : }
25 : :
26 : 0 : __weak void *arch_memcpy_to_instr(void *d, const void *s, size_t n)
27 : : {
28 : 0 : return memcpy(d, s, n);
29 : : }
30 : :
31 : 0 : __weak void *arch_memcpy_from_instr(void *d, const void *s, size_t n)
32 : : {
33 : 0 : return memcpy(d, s, n);
34 : : }
|