mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-22 20:29:00 +08:00
[kservice] remove RT_USING_ASM_MEMCPY RT_USING_ASM_MEMSET
This commit is contained in:
parent
6369e89502
commit
093b9700c8
@ -218,11 +218,7 @@
|
|||||||
#define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
|
#define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
|
||||||
|
|
||||||
/* ---------- Memory options ---------- */
|
/* ---------- Memory options ---------- */
|
||||||
#ifdef RT_USING_ASM_MEMCPY
|
|
||||||
#define MEMCPY(dst,src,len) rt_memcpy(dst,src,len)
|
#define MEMCPY(dst,src,len) rt_memcpy(dst,src,len)
|
||||||
#else
|
|
||||||
#define MEMCPY(dst,src,len) memcpy(dst,src,len)
|
|
||||||
#endif /* RT_USING_ASM_MEMCPY */
|
|
||||||
#define SMEMCPY(dst,src,len) MEMCPY(dst,src,len)
|
#define SMEMCPY(dst,src,len) MEMCPY(dst,src,len)
|
||||||
|
|
||||||
#define MEM_ALIGNMENT 4
|
#define MEM_ALIGNMENT 4
|
||||||
|
@ -226,11 +226,7 @@
|
|||||||
#define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
|
#define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
|
||||||
|
|
||||||
/* ---------- Memory options ---------- */
|
/* ---------- Memory options ---------- */
|
||||||
#ifdef RT_USING_ASM_MEMCPY
|
|
||||||
#define MEMCPY(dst,src,len) rt_memcpy(dst,src,len)
|
#define MEMCPY(dst,src,len) rt_memcpy(dst,src,len)
|
||||||
#else
|
|
||||||
#define MEMCPY(dst,src,len) memcpy(dst,src,len)
|
|
||||||
#endif /* RT_USING_ASM_MEMCPY */
|
|
||||||
#define SMEMCPY(dst,src,len) MEMCPY(dst,src,len)
|
#define SMEMCPY(dst,src,len) MEMCPY(dst,src,len)
|
||||||
|
|
||||||
#ifdef RT_LWIP_MEM_ALIGNMENT
|
#ifdef RT_LWIP_MEM_ALIGNMENT
|
||||||
|
@ -226,11 +226,7 @@
|
|||||||
#define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
|
#define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
|
||||||
|
|
||||||
/* ---------- Memory options ---------- */
|
/* ---------- Memory options ---------- */
|
||||||
#ifdef RT_USING_ASM_MEMCPY
|
|
||||||
#define MEMCPY(dst,src,len) rt_memcpy(dst,src,len)
|
#define MEMCPY(dst,src,len) rt_memcpy(dst,src,len)
|
||||||
#else
|
|
||||||
#define MEMCPY(dst,src,len) memcpy(dst,src,len)
|
|
||||||
#endif /* RT_USING_ASM_MEMCPY */
|
|
||||||
#define SMEMCPY(dst,src,len) MEMCPY(dst,src,len)
|
#define SMEMCPY(dst,src,len) MEMCPY(dst,src,len)
|
||||||
|
|
||||||
#ifdef RT_LWIP_MEM_ALIGNMENT
|
#ifdef RT_LWIP_MEM_ALIGNMENT
|
||||||
|
@ -238,11 +238,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ---------- Memory options ---------- */
|
/* ---------- Memory options ---------- */
|
||||||
#ifdef RT_USING_ASM_MEMCPY
|
|
||||||
#define MEMCPY(dst,src,len) rt_memcpy(dst,src,len)
|
#define MEMCPY(dst,src,len) rt_memcpy(dst,src,len)
|
||||||
#else
|
|
||||||
#define MEMCPY(dst,src,len) memcpy(dst,src,len)
|
|
||||||
#endif /* RT_USING_ASM_MEMCPY */
|
|
||||||
#define SMEMCPY(dst,src,len) MEMCPY(dst,src,len)
|
#define SMEMCPY(dst,src,len) MEMCPY(dst,src,len)
|
||||||
|
|
||||||
#define MEM_ALIGNMENT 4
|
#define MEM_ALIGNMENT 4
|
||||||
|
@ -134,14 +134,6 @@ menu "kservice optimization"
|
|||||||
bool "Enable kservice to use tiny size"
|
bool "Enable kservice to use tiny size"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config RT_USING_ASM_MEMCPY
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config RT_USING_ASM_MEMSET
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config RT_USING_TINY_FFS
|
config RT_USING_TINY_FFS
|
||||||
bool "Enable kservice to use tiny finding first bit set method"
|
bool "Enable kservice to use tiny finding first bit set method"
|
||||||
default n
|
default n
|
||||||
|
@ -115,7 +115,6 @@ int *_rt_errno(void)
|
|||||||
}
|
}
|
||||||
RTM_EXPORT(_rt_errno);
|
RTM_EXPORT(_rt_errno);
|
||||||
|
|
||||||
#ifndef RT_USING_ASM_MEMSET
|
|
||||||
/**
|
/**
|
||||||
* This function will set the content of memory to specified value.
|
* This function will set the content of memory to specified value.
|
||||||
*
|
*
|
||||||
@ -128,7 +127,7 @@ RTM_EXPORT(_rt_errno);
|
|||||||
*
|
*
|
||||||
* @return The address of source memory.
|
* @return The address of source memory.
|
||||||
*/
|
*/
|
||||||
void *rt_memset(void *s, int c, rt_ubase_t count)
|
RT_WEAK void *rt_memset(void *s, int c, rt_ubase_t count)
|
||||||
{
|
{
|
||||||
#ifdef RT_KSERVICE_USING_TINY_SIZE
|
#ifdef RT_KSERVICE_USING_TINY_SIZE
|
||||||
char *xs = (char *)s;
|
char *xs = (char *)s;
|
||||||
@ -201,9 +200,7 @@ void *rt_memset(void *s, int c, rt_ubase_t count)
|
|||||||
#endif /* RT_KSERVICE_USING_TINY_SIZE */
|
#endif /* RT_KSERVICE_USING_TINY_SIZE */
|
||||||
}
|
}
|
||||||
RTM_EXPORT(rt_memset);
|
RTM_EXPORT(rt_memset);
|
||||||
#endif /* RT_USING_ASM_MEMSET */
|
|
||||||
|
|
||||||
#ifndef RT_USING_ASM_MEMCPY
|
|
||||||
/**
|
/**
|
||||||
* This function will copy memory content from source address to destination address.
|
* This function will copy memory content from source address to destination address.
|
||||||
*
|
*
|
||||||
@ -215,7 +212,7 @@ RTM_EXPORT(rt_memset);
|
|||||||
*
|
*
|
||||||
* @return The address of destination memory
|
* @return The address of destination memory
|
||||||
*/
|
*/
|
||||||
void *rt_memcpy(void *dst, const void *src, rt_ubase_t count)
|
RT_WEAK void *rt_memcpy(void *dst, const void *src, rt_ubase_t count)
|
||||||
{
|
{
|
||||||
#ifdef RT_KSERVICE_USING_TINY_SIZE
|
#ifdef RT_KSERVICE_USING_TINY_SIZE
|
||||||
char *tmp = (char *)dst, *s = (char *)src;
|
char *tmp = (char *)dst, *s = (char *)src;
|
||||||
@ -287,7 +284,6 @@ void *rt_memcpy(void *dst, const void *src, rt_ubase_t count)
|
|||||||
#endif /* RT_KSERVICE_USING_TINY_SIZE */
|
#endif /* RT_KSERVICE_USING_TINY_SIZE */
|
||||||
}
|
}
|
||||||
RTM_EXPORT(rt_memcpy);
|
RTM_EXPORT(rt_memcpy);
|
||||||
#endif /* RT_USING_ASM_MEMCPY */
|
|
||||||
|
|
||||||
#ifndef RT_KSERVICE_USING_STDLIB
|
#ifndef RT_KSERVICE_USING_STDLIB
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user