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>
|
2002-11-20 Ryo Tsuruta <ryo@kitanet.ne.jp>
|
||||||
|
|
||||||
* libc/machine/h8300/setjmp.S (setjmp, longjmp): Combine common
|
* 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.b %0, r0l":: "i" (SYS_read)) ; /* Syscall Number */
|
||||||
asm("mov.w %0, r1" :: "r"((short)file) :"r1", "r2", "r3") ;
|
asm("mov.w %0, r1" :: "r"((short)file) :"r1", "r2", "r3") ;
|
||||||
asm("mov.w %0, r3" :: "r"((short)len) :"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") ;
|
asm("mov.w %0, r2" :: "r"(ptr) :"r1", "r2", "r3") ;
|
||||||
#else
|
#else
|
||||||
asm("mov.l %0, er2" :: "r"(ptr) :"r1", "er2", "r3") ;
|
asm("mov.l %0, er2" :: "r"(ptr) :"r1", "er2", "r3") ;
|
||||||
|
|
Loading…
Reference in New Issue