mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-21 07:11:14 +08:00
In stm32fx's stm32_rom.ld, add symbol - '_stext' to support lua a. Update lua's README.TXT
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2410 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -197,7 +197,6 @@ _wait_r(struct _reent *ptr, int *status)
|
||||
_ssize_t
|
||||
_write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes)
|
||||
{
|
||||
#ifndef RT_USING_DFS
|
||||
if (fd < 3)
|
||||
{
|
||||
rt_device_t console_device;
|
||||
@@ -207,13 +206,13 @@ _write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes)
|
||||
if (console_device != 0) rt_device_write(console_device, 0, buf, nbytes);
|
||||
return nbytes;
|
||||
}
|
||||
return 0;
|
||||
#else
|
||||
_ssize_t rc;
|
||||
else
|
||||
{
|
||||
_ssize_t rc;
|
||||
|
||||
rc = write(fd, buf, nbytes);
|
||||
return rc;
|
||||
#endif
|
||||
rc = write(fd, buf, nbytes);
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user