Compare commits

..

3 Commits

2 changed files with 8 additions and 6 deletions

View File

@ -5,8 +5,8 @@ ENTRY( _start )
MEMORY
{
rom (rxai!w) : ORIGIN = 0xFFFFE000, LENGTH = 2k
flash (rxai!w) : ORIGIN = 0xE0000000, LENGTH = 16M
ram (wxa!ri) : ORIGIN = 0xC0000000, LENGTH = 128K
flash (rxai!w) : ORIGIN = 0x30000000, LENGTH = 16M
ram (wxa!ri) : ORIGIN = 0x10000000, LENGTH = 128K
dram (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 2048M
}

View File

@ -2,10 +2,12 @@
#include <string.h>
#include <unistd.h>
extern ssize_t _bsp_write(int, const void *, size_t);
extern ssize_t _bsp_write(int, const void*, size_t);
int __wrap_puts(const char *s) {
int len = strlen(s);
return _bsp_write(STDOUT_FILENO, s, len);
int __wrap_puts(const char* s) {
const char* str = s;
while(*str)
str++;
return _bsp_write(STDOUT_FILENO, s, str - s);
}
weak_under_alias(puts);