diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-02-25 23:36:29 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-02-25 23:36:29 +0300 |
commit | 41a639dea811272c66ed71eb9ca6c233050f57b3 (patch) | |
tree | eadb76e7fe1e3fe6baed9ff78d86ee83eae163f2 /newlib/libc/sys/h8300hms/read.S | |
parent | 5ffa5aaa5c9f7151ffd0fc4d6eae6f48cab29427 (diff) |
2002-02-25 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* libc/sys/h8300hms/Makefile.am: Add support for new files.
* libc/sys/h8300hms/Makefile.in: Regenerated.
* libc/sys/h8300hms/close.S: New file.
* libc/sys/h8300hms/fstat.S: Ditto.
* libc/sys/h8300hms/lseek.S: Ditto.
* libc/sys/h8300hms/open.S: Ditto.
* libc/sys/h8300hms/stat.S: Ditto.
* libc/sys/h8300hms/read.S: New file to replace read.c.
* libc/sys/h8300hms/read.c: Removed.
* libc/sys/h8300hms/syscalls.c: Removed functions _open,
_lseek, _close, _stat, _fstat.
* libc/sys/h8300hms/write.S: New file to replace write.c.
* libc/sys/h8300hms/write.c: Removed.
Diffstat (limited to 'newlib/libc/sys/h8300hms/read.S')
-rw-r--r-- | newlib/libc/sys/h8300hms/read.S | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/newlib/libc/sys/h8300hms/read.S b/newlib/libc/sys/h8300hms/read.S new file mode 100644 index 000000000..77a7f1c3a --- /dev/null +++ b/newlib/libc/sys/h8300hms/read.S @@ -0,0 +1,23 @@ +;ssize_t read(int fd, void *buf, size_t count); +;Integer arguments have to be zero extended. + +#if defined(__H8300H__) + .h8300h +#endif +#if defined(__H8300S__) + .h8300s +#endif + + .section .text + .align 2 + .global __read +__read: +#if defined(__H8300H__) || defined(__H8300S__) +#if __INT_MAX__ == 32767 + extu.l er0 +#endif +#endif + jsr @@0xc6 + rts + .end + |