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:
parent
8efb9fd7af
commit
40ce7368d9
@ -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
|
||||
|
@ -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") ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user