This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

normal mode support in newlib for h8


Hi,
This is in reference to normal mode support recently added in gcc for H8
target.
Please refer,
http://gcc.gnu.org/ml/gcc-patches/2002-11/msg01119.html
http://gcc.gnu.org/ml/gcc-patches/2002-11/msg01006.html
for more details.
Following patch adds normal mode support in newlib.
-Regards,
Vijay

Change log:
2002-11-19  Vijay L. Khuspe  <vijayk1@kpit.com>
         *newlib/libc/sys/h8300hms/read.c:Extended support for normal mode
 	   architecture.

Index:newlib/libc/sys/h8300hms/read.c
=======================================================================
*** ../newlib/libc/sys/h8300hms/read.c  Tue Nov 19 15:16:49 2002
--- read.c      Tue Nov 19 15:23:43 2002
***************
*** 15,19 ****
         asm("mov.w %0, r1" :: "r"((short)file) :"r1", "r2", "r3") ;
         asm("mov.w %0, r3" :: "r"((short)len) :"r1", "r2", "r3") ;
 ! #ifdef __H8300__
         asm("mov.w %0, r2" :: "r"(ptr) :"r1", "r2", "r3") ;
   #else
 --- 15,19 ----
         asm("mov.w %0, r1" :: "r"((short)file) :"r1", "r2", "r3") ;
         asm("mov.w %0, r3" :: "r"((short)len) :"r1", "r2", "r3") ;
 ! #ifdef (__H8300__) || (__NORMAL_MODE__)
         asm("mov.w %0, r2" :: "r"(ptr) :"r1", "r2", "r3") ;
   #else



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]