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
|
||||
{
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,9 @@
|
||||
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);
|
||||
const char* str = s;
|
||||
while(*str)
|
||||
str++;
|
||||
return _bsp_write(STDOUT_FILENO, s, str - s);
|
||||
}
|
||||
weak_under_alias(puts);
|
||||
|
Reference in New Issue
Block a user