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:
xiongyihui3@gmail.com
2012-11-13 15:21:01 +00:00
parent ee2344c582
commit d48ef70ecd
6 changed files with 15 additions and 11 deletions

View File

@@ -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