4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-18 12:29:32 +08:00

2002-11-22 Vijay L. Khuspe <vijayk1@kpit.com>

* libc/sys/h8300hms/read.c: Add support for normal mode
        architecture.
This commit is contained in:
Jeff Johnston 2002-11-22 18:06:10 +00:00
parent 8efb9fd7af
commit 40ce7368d9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-11-22 Vijay L. Khuspe <vijayk1@kpit.com>
* libc/sys/h8300hms/read.c: Add support for normal mode
architecture.
2002-11-20 Ryo Tsuruta <ryo@kitanet.ne.jp>
* libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common

View File

@ -14,7 +14,7 @@ int _read(file, ptr, len)
asm("mov.b %0, r0l":: "i" (SYS_read)) ; /* Syscall Number */
asm("mov.w %0, r1" :: "r"((short)file) :"r1", "r2", "r3") ;
asm("mov.w %0, r3" :: "r"((short)len) :"r1", "r2", "r3") ;
#ifdef __H8300__
#if defined(__H8300__) || defined(__NORMAL_MODE__)
asm("mov.w %0, r2" :: "r"(ptr) :"r1", "r2", "r3") ;
#else
asm("mov.l %0, er2" :: "r"(ptr) :"r1", "er2", "r3") ;