2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
* libc/machine/h8300/setarch.h: New. * libc/machine/h8300/memcpy.S: Use it. * libc/machine/h8300/memset.S: Likewise. * libc/machine/h8300/reg_memcpy.S: Likewise. * libc/machine/h8300/reg_memset.S: Likewise. * libc/machine/h8300/setjmp.S: Likewise. * libc/machine/h8300/strcmp.S: Likewise.
This commit is contained in:
parent
6d7ea52a26
commit
b8f7ea5ccb
@ -1,3 +1,13 @@
|
||||
2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* libc/machine/h8300/setarch.h: New.
|
||||
* libc/machine/h8300/memcpy.S: Use it.
|
||||
* libc/machine/h8300/memset.S: Likewise.
|
||||
* libc/machine/h8300/reg_memcpy.S: Likewise.
|
||||
* libc/machine/h8300/reg_memset.S: Likewise.
|
||||
* libc/machine/h8300/setjmp.S: Likewise.
|
||||
* libc/machine/h8300/strcmp.S: Likewise.
|
||||
|
||||
2003-06-24 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call
|
||||
|
@ -1,21 +1,7 @@
|
||||
#include "setarch.h"
|
||||
|
||||
#include "defines.h"
|
||||
|
||||
#ifdef __H8300H__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300hn
|
||||
#else
|
||||
.h8300h
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __H8300S__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300sn
|
||||
#else
|
||||
.h8300s
|
||||
#endif
|
||||
#endif
|
||||
|
||||
.global _memcpy
|
||||
_memcpy:
|
||||
; MOVP @(2/4,r7),A0P ; dst
|
||||
|
@ -1,22 +1,7 @@
|
||||
#include "setarch.h"
|
||||
|
||||
#include "defines.h"
|
||||
|
||||
#ifdef __H8300H__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300hn
|
||||
#else
|
||||
.h8300h
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __H8300S__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300sn
|
||||
#else
|
||||
.h8300s
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
; A0P pointer to cursor
|
||||
; A1P thing to copy
|
||||
.global _memset
|
||||
|
@ -1,22 +1,7 @@
|
||||
#include "setarch.h"
|
||||
|
||||
#include "defines.h"
|
||||
|
||||
#ifdef __H8300H__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300hn
|
||||
#else
|
||||
.h8300h
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __H8300S__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300sn
|
||||
#else
|
||||
.h8300s
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
; dst A0
|
||||
; src A1
|
||||
; len A2
|
||||
|
@ -1,22 +1,7 @@
|
||||
#include "setarch.h"
|
||||
|
||||
#include "defines.h"
|
||||
|
||||
#ifdef __H8300H__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300hn
|
||||
#else
|
||||
.h8300h
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __H8300S__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300sn
|
||||
#else
|
||||
.h8300s
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
; dst A0
|
||||
; src A1
|
||||
; len A2
|
||||
|
14
newlib/libc/machine/h8300/setarch.h
Normal file
14
newlib/libc/machine/h8300/setarch.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifdef __H8300H__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300hn
|
||||
#else
|
||||
.h8300h
|
||||
#endif
|
||||
#endif
|
||||
#ifdef __H8300S__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300sn
|
||||
#else
|
||||
.h8300s
|
||||
#endif
|
||||
#endif
|
@ -1,21 +1,7 @@
|
||||
#include "setarch.h"
|
||||
|
||||
.file "setjmp.S"
|
||||
|
||||
#ifdef __H8300H__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300hn
|
||||
#else
|
||||
.h8300h
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __H8300S__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300sn
|
||||
#else
|
||||
.h8300s
|
||||
#endif
|
||||
#endif
|
||||
|
||||
.section .text
|
||||
.align 2
|
||||
.global _setjmp
|
||||
|
@ -1,21 +1,7 @@
|
||||
#include "setarch.h"
|
||||
|
||||
#include "defines.h"
|
||||
|
||||
#ifdef __H8300H__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300hn
|
||||
#else
|
||||
.h8300h
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __H8300S__
|
||||
#ifdef __NORMAL_MODE__
|
||||
.h8300sn
|
||||
#else
|
||||
.h8300s
|
||||
#endif
|
||||
#endif
|
||||
|
||||
.section .text
|
||||
.align 2
|
||||
.global _strcmp
|
||||
|
Loading…
x
Reference in New Issue
Block a user