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]

Re: Normal mode support in newlib for h8


vijay khuspe wrote:
Hi,
Please find the updated patch for read.c
as #ifdef (__H8300__) || (__NORMAL_MODE__)
should be,
#if defined(__H8300__) || defined(__NORMAL_MODE__)
I intended to define __NORMAL_MODE__
Thanks and Regards,
Vijay

Patch checked in.

-- Jeff J.

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
============================================================================
===============
*** read.c.org  Thu Nov 21 11:45:58 2002
--- read.c      Thu Nov 21 11:47:05 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") ;
! #if defined  (__H8300__) || defined  (__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]