BugID:17974906: in keil project,  define __aeabi_errno_addr(), place errno
at armcc_libc.c instead of the default location identified by __user_libspace()
#include "k_config.h"
#include <hal/hal.h>
-int errno;
+volatile int errno = 0;
extern uart_dev_t uart_0;
#if defined (__CC_ARM) && defined(__MICROLIB)
@@ -25,6 +25,12 @@ int gettimeofday(struct timeval *tv, void *tzp)
return 0;
}
+volatile int *__aeabi_errno_addr()
+{
+ return &errno;
+}
+
+
#if (RHINO_CONFIG_MM_TLF > 0)
#define AOS_UNSIGNED_INT_MSB (1u << (sizeof(unsigned int) * 8 - 1))
extern void *aos_malloc(unsigned int size);
