Hallo
I am using embos "evaluation version" (near memory model) for
M32C and IAR compiler. I have implemented a TCP-IP stack to run an SNMP
application. I am able to get almost any MIB with no problem. The
trouble I see is that the OS hangs on an apparently normal get
involving a pointer. I am already using the thread-safe versions of the
malloc() and free(). Now I discovered that there are thread-safe versions of memset() and memcpy() functions, too.
I hope using those I'll solve my problems, but I am not able to do
that, cause there is no prototype declared, and I was not able to
create a prototype fitting the real one.
I RTOS.H I see:
/* memset and
memcpy need to be replaced for near memory
model */
/* this is
done in
OS_Priv
*/
#define OS_MEMSET(Adr, Value,
Size) OS_memset(Adr, Value, Size)
#define OS_MEMCPY(Dest, Src, Size)
OS_memcpy(Dest, Src, Size)
As you can see there is only a macro. redirecting OS_MEMSET to the thread safe version.
Someone can help me ?
Remember we are going to Christmas day....
Thanks in advance
fffromeo
I am using embos "evaluation version" (near memory model) for
M32C and IAR compiler. I have implemented a TCP-IP stack to run an SNMP
application. I am able to get almost any MIB with no problem. The
trouble I see is that the OS hangs on an apparently normal get
involving a pointer. I am already using the thread-safe versions of the
malloc() and free(). Now I discovered that there are thread-safe versions of memset() and memcpy() functions, too.
I hope using those I'll solve my problems, but I am not able to do
that, cause there is no prototype declared, and I was not able to
create a prototype fitting the real one.
I RTOS.H I see:
/* memset and
memcpy need to be replaced for near memory
model */
/* this is
done in
OS_Priv
*/
#define OS_MEMSET(Adr, Value,
Size) OS_memset(Adr, Value, Size)
#define OS_MEMCPY(Dest, Src, Size)
OS_memcpy(Dest, Src, Size)
As you can see there is only a macro. redirecting OS_MEMSET to the thread safe version.
Someone can help me ?
Remember we are going to Christmas day....
Thanks in advance
fffromeo