diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-11-22 18:06:10 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-11-22 18:06:10 +0000 |
commit | 40ce7368d9b8915323c59691110fcfe95e88fcc1 (patch) | |
tree | 6d132a2e7f6a0f0210edd20c99916e87a530f99b | |
parent | 8efb9fd7af65ecef7a572d3624b04c7daea3e9bd (diff) | |
download | newlib-40ce7368d9b8915323c59691110fcfe95e88fcc1.zip newlib-40ce7368d9b8915323c59691110fcfe95e88fcc1.tar.gz newlib-40ce7368d9b8915323c59691110fcfe95e88fcc1.tar.bz2 |
2002-11-22 Vijay L. Khuspe <vijayk1@kpit.com>
* libc/sys/h8300hms/read.c: Add support for normal mode
architecture.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/sys/h8300hms/read.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b3fcc58..8d5df9f 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -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 diff --git a/newlib/libc/sys/h8300hms/read.c b/newlib/libc/sys/h8300hms/read.c index ba6b9e9..01316f9 100644 --- a/newlib/libc/sys/h8300hms/read.c +++ b/newlib/libc/sys/h8300hms/read.c @@ -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") ; |