Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/h8300hms/read.c')
-rw-r--r--newlib/libc/sys/h8300hms/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/sys/h8300hms/read.c b/newlib/libc/sys/h8300hms/read.c
index ba6b9e929..01316f951 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") ;