mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 14:24:40 +08:00
binfmt: Support arch copy section by self for dynamic code loading
This option enables architecture-specific memory copy for dynamic code loading. For example, Ambiq has MRAM regions for instruction which can't load by the memcpy directly. Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
@@ -772,6 +772,21 @@ void up_textheap_free(FAR void *p);
|
||||
bool up_textheap_heapmember(FAR void *p);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_copy_section
|
||||
*
|
||||
* Description:
|
||||
* Copy section from general temporary buffer(src) to special addr(dest).
|
||||
*
|
||||
* Returned Value:
|
||||
* Zero (OK) on success; a negated errno value on failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_ARCH_USE_COPY_SECTION)
|
||||
int up_copy_section(FAR void *dest, FAR const void *src, size_t n);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_setpicbase and up_getpicbase
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user