Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2014-03-22 01:02:52 +0400
committerJeff Johnston <jjohnstn@redhat.com>2014-03-22 01:02:52 +0400
commit23cf8028ec4b7bb2206fbfde1fe9b59ac977f324 (patch)
tree516e33d63d67dea70c373bd3dae453ca9bdd5d99 /libgloss/nds32/_read.S
parente59026e844dc2f11f032058e671da848beb67f91 (diff)
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
* nds32/_argv.S: Replace syscall with break. * nds32/_argvlen.S: Ditto. * nds32/_chdir.S: Ditto. * nds32/_chmod.S: Ditto. * nds32/_close.S: Ditto. * nds32/_exit.S: Ditto. * nds32/_fstat.S: Ditto. * nds32/_getpid.S: Ditto. * nds32/_gettimeofday.S: Ditto. * nds32/_isatty.S: Ditto. * nds32/_kill.S: Ditto. * nds32/_link.S: Ditto. * nds32/_lseek.S: Ditto. * nds32/_open.S: Ditto. * nds32/_read.S: Ditto. * nds32/_rename.S: Ditto. * nds32/_stat.S: Ditto. * nds32/_system.S: Ditto. * nds32/_time.S: Ditto. * nds32/_times.S: Ditto. * nds32/_unlink.S: Ditto. * nds32/_utime.S: Ditto. * nds32/_write.S: Ditto. * nds32/syscall_error_handler.S: Ditto. * nds32/vh.h: New.
Diffstat (limited to 'libgloss/nds32/_read.S')
-rw-r--r--libgloss/nds32/_read.S12
1 files changed, 10 insertions, 2 deletions
diff --git a/libgloss/nds32/_read.S b/libgloss/nds32/_read.S
index ad15dd40d..ca0c8af3c 100644
--- a/libgloss/nds32/_read.S
+++ b/libgloss/nds32/_read.S
@@ -27,8 +27,16 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "../syscall.h"
-#include "syscall_extra.h"
+#ifdef __NDS32_VH__
+
+#include "vh.h"
+.extern _impure_ptr
+TYPE1 _read, VH_READ
+#else /* not __NDS32_VH__ */
+#include "../syscall.h"
+#include "syscall_extra.h"
SYS_WRAPPER _read, SYS_read
+
+#endif /* not __NDS32_VH__ */