Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
instr_mem.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_ARCH_COMMON_INSTR_MEM_H_
8#define ZEPHYR_INCLUDE_ARCH_COMMON_INSTR_MEM_H_
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include <zephyr/sys/util.h>
15
24
38bool arch_is_instr_mem(const void *addr, size_t len);
39
50void *arch_memset_instr(void *buf, int c, size_t n);
51
62void *arch_memcpy_to_instr(void *d, const void *s, size_t n);
63
74void *arch_memcpy_from_instr(void *d, const void *s, size_t n);
75
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* ZEPHYR_INCLUDE_ARCH_COMMON_INSTR_MEM_H_ */
void * arch_memcpy_from_instr(void *d, const void *s, size_t n)
Memcpy buffer from instruction memory to data memory.
void * arch_memcpy_to_instr(void *d, const void *s, size_t n)
Memcpy buffer from data memory to instruction memory.
bool arch_is_instr_mem(const void *addr, size_t len)
Check if region is in instruction memory.
void * arch_memset_instr(void *buf, int c, size_t n)
Memset buffer in instruction memory.
Misc utilities.