PATCH : H8300 Simulator File I/O Implementation
D.Venkatasubramanian, Noida
dvenkat@noida.hcltech.com
Fri Jan 3 08:30:00 GMT 2003
Hi All,
Based on my earlier mail:
http://sources.redhat.com/ml/gdb-patches/2002-12/msg00760.html
and subsequent ideas and suggestions from Kazu Hirata, I am
submitting the modified patches.
Changes:
1) Comments included in each .S file.
2) An include directive which had unintentionally crept in last
time has been removed.
3) A commented C statement in my earlier patch removed in
simulator patch.
Regards,
Venky
2003-01-03 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* compile.c (decode): Added code for some more magic traps.
* compile.c (sim_resume): Added support for File I/O system
calls through callback to host_system.
System calls provided support for :
open, read, write, lseek, close, stat, fstat
Only basic support for stat and fstat.
2003-01-03 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* /libc/sys/h8300hms/syscalls.c: Removed functions _open,
_lseek, _close, _stat, _fstat.
* /libc/sys/h8300hms/read.c: Removed.
* /libc/sys/h8300hms/write.c: Removed.
* /libc/sys/h8300hms/open.S: Hand coded assembly for
implementing _open removed from syscalls.c.
* /libc/sys/h8300hms/read.S: Hand coded assembly for
implementing _open removed from read.c.
* /libc/sys/h8300hms/write.S: Hand coded assembly for
implementing _open removed from write.c.
* /libc/sys/h8300hms/lseek.S: Hand coded assembly for
implementing _open removed from syscalls.c.
* /libc/sys/h8300hms/close.S: Hand coded assembly for
implementing _open removed from syscalls.c.
* /libc/sys/h8300hms/fstat.S: Hand coded assembly for
implementing _open removed from syscalls.c.
* /libc/sys/h8300hms/stat.S: Hand coded assembly for
implementing _open removed from syscalls.c.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChangeLog.txt
URL: <http://sourceware.org/pipermail/newlib/attachments/20030103/3970d286/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: close.S
Type: application/octet-stream
Size: 320 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20030103/3970d286/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fstat.S
Type: application/octet-stream
Size: 353 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20030103/3970d286/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lseek.S
Type: application/octet-stream
Size: 364 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20030103/3970d286/attachment-0002.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib_patch.txt
URL: <http://sourceware.org/pipermail/newlib/attachments/20030103/3970d286/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: open.S
Type: application/octet-stream
Size: 327 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20030103/3970d286/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: read.S
Type: application/octet-stream
Size: 357 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20030103/3970d286/attachment-0004.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: simulator_patch.txt
URL: <http://sourceware.org/pipermail/newlib/attachments/20030103/3970d286/attachment-0002.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stat.S
Type: application/octet-stream
Size: 217 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20030103/3970d286/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: write.S
Type: application/octet-stream
Size: 356 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20030103/3970d286/attachment-0006.obj>
More information about the Newlib
mailing list