}
/* move a memory buffer */
-static inline void __adf_os_mem_copy(void *dst, void *src, adf_os_size_t size)
+static inline void __adf_os_mem_copy(void *dst, const void *src, adf_os_size_t size)
{
A_MEMCPY(dst,src,size);
}
* @param[in] size buffer size
*/
static inline void
-adf_os_mem_copy(void *dst, void *src, adf_os_size_t size)
+adf_os_mem_copy(void *dst, const void *src, adf_os_size_t size)
{
__adf_os_mem_copy(dst, src, size);
}
}
void * __ahdecl
-ath_hal_memcpy(void *dst, void *src, adf_os_size_t n)
+ath_hal_memcpy(void *dst, const void *src, adf_os_size_t n)
{
adf_os_mem_copy(dst, src, n);
return 0;
#define OS_MEMZERO(_a, _n) ath_hal_memzero((_a), (_n))
extern void __ahdecl ath_hal_memzero(void *, size_t);
#define OS_MEMCPY(_d, _s, _n) ath_hal_memcpy(_d,_s,_n)
-extern void * __ahdecl ath_hal_memcpy(void *, void *, size_t);
+extern void * __ahdecl ath_hal_memcpy(void *, const void *, size_t);
#ifndef abs
#define abs(_a) __builtin_abs(_a)