Compare commits
3 Commits
ca36d3ef84
...
b69fd19910
Author | SHA1 | Date | |
---|---|---|---|
b69fd19910 | |||
25306948c9 | |||
74fd5b0a2b |
4
env/moonlight/link.lds
vendored
4
env/moonlight/link.lds
vendored
@ -5,8 +5,8 @@ ENTRY( _start )
|
|||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
rom (rxai!w) : ORIGIN = 0xFFFFE000, LENGTH = 2k
|
rom (rxai!w) : ORIGIN = 0xFFFFE000, LENGTH = 2k
|
||||||
flash (rxai!w) : ORIGIN = 0xE0000000, LENGTH = 16M
|
flash (rxai!w) : ORIGIN = 0x30000000, LENGTH = 16M
|
||||||
ram (wxa!ri) : ORIGIN = 0xC0000000, LENGTH = 128K
|
ram (wxa!ri) : ORIGIN = 0x10000000, LENGTH = 128K
|
||||||
dram (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 2048M
|
dram (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 2048M
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,10 +2,12 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.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 __wrap_puts(const char* s) {
|
||||||
int len = strlen(s);
|
const char* str = s;
|
||||||
return _bsp_write(STDOUT_FILENO, s, len);
|
while(*str)
|
||||||
|
str++;
|
||||||
|
return _bsp_write(STDOUT_FILENO, s, str - s);
|
||||||
}
|
}
|
||||||
weak_under_alias(puts);
|
weak_under_alias(puts);
|
||||||
|
Reference in New Issue
Block a user