mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-23 09:09:35 +08:00
* libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_memclr.c,
aeabi_memcpy.c, aeabi_memmove.c and aeabi_memset.c. * libc/sys/arm/Makefile.in: Regenerate. * libc/sys/arm/aeabi.h: New file. * libc/sys/arm/aeabi_memclr.c: New file. * libc/sys/arm/aeabi_memcpy.c: New file. * libc/sys/arm/aeabi_memmove.c: New file. * libc/sys/arm/aeabi_memset.c: New file.
This commit is contained in:
parent
79470d2462
commit
998982571e
@ -1,3 +1,14 @@
|
|||||||
|
2006-05-04 Paul Brook <paul@codesourcery.com>
|
||||||
|
|
||||||
|
* libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_memclr.c,
|
||||||
|
aeabi_memcpy.c, aeabi_memmove.c and aeabi_memset.c.
|
||||||
|
* libc/sys/arm/Makefile.in: Regenerate.
|
||||||
|
* libc/sys/arm/aeabi.h: New file.
|
||||||
|
* libc/sys/arm/aeabi_memclr.c: New file.
|
||||||
|
* libc/sys/arm/aeabi_memcpy.c: New file.
|
||||||
|
* libc/sys/arm/aeabi_memmove.c: New file.
|
||||||
|
* libc/sys/arm/aeabi_memset.c: New file.
|
||||||
|
|
||||||
2006-03-29 Nathan Sidwell <nathan@codesourcery.com>
|
2006-03-29 Nathan Sidwell <nathan@codesourcery.com>
|
||||||
|
|
||||||
* libgloss/m68k/bdm-isv.c (software_init_hook): Fix trap numbering.
|
* libgloss/m68k/bdm-isv.c (software_init_hook): Fix trap numbering.
|
||||||
|
@ -12,7 +12,8 @@ else
|
|||||||
extra_objs =
|
extra_objs =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
lib_a_SOURCES = aeabi_atexit.c
|
lib_a_SOURCES = aeabi_atexit.c aeabi_memclr.c aeabi_memcpy.c \
|
||||||
|
aeabi_memmove.c aeabi_memset.c
|
||||||
lib_a_LIBADD = $(extra_objs)
|
lib_a_LIBADD = $(extra_objs)
|
||||||
lib_a_DEPENDENCIES = $(extra_objs)
|
lib_a_DEPENDENCIES = $(extra_objs)
|
||||||
|
|
||||||
|
@ -91,7 +91,8 @@ noinst_LIBRARIES = lib.a
|
|||||||
@MAY_SUPPLY_SYSCALLS_TRUE@extra_objs = @MAY_SUPPLY_SYSCALLS_TRUE@libcfunc.o trap.o syscalls.o _exit.o _nmi_isr.o _fault_isr.o
|
@MAY_SUPPLY_SYSCALLS_TRUE@extra_objs = @MAY_SUPPLY_SYSCALLS_TRUE@libcfunc.o trap.o syscalls.o _exit.o _nmi_isr.o _fault_isr.o
|
||||||
@MAY_SUPPLY_SYSCALLS_FALSE@extra_objs =
|
@MAY_SUPPLY_SYSCALLS_FALSE@extra_objs =
|
||||||
|
|
||||||
lib_a_SOURCES = aeabi_atexit.c
|
lib_a_SOURCES = aeabi_atexit.c aeabi_memclr.c aeabi_memcpy.c aeabi_memmove.c aeabi_memset.c
|
||||||
|
|
||||||
lib_a_LIBADD = $(extra_objs)
|
lib_a_LIBADD = $(extra_objs)
|
||||||
lib_a_DEPENDENCIES = $(extra_objs)
|
lib_a_DEPENDENCIES = $(extra_objs)
|
||||||
|
|
||||||
@ -106,7 +107,8 @@ LIBRARIES = $(noinst_LIBRARIES)
|
|||||||
DEFS = @DEFS@ -I. -I$(srcdir)
|
DEFS = @DEFS@ -I. -I$(srcdir)
|
||||||
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
lib_a_OBJECTS = aeabi_atexit.o
|
lib_a_OBJECTS = aeabi_atexit.o aeabi_memclr.o aeabi_memcpy.o \
|
||||||
|
aeabi_memmove.o aeabi_memset.o
|
||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
||||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
CCLD = $(CC)
|
CCLD = $(CC)
|
||||||
|
7
newlib/libc/sys/arm/aeabi.h
Normal file
7
newlib/libc/sys/arm/aeabi.h
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/* Include file with common definitions used by The Arm EABI support
|
||||||
|
routines. */
|
||||||
|
|
||||||
|
# define strong_alias(name, aliasname) _strong_alias(name, aliasname)
|
||||||
|
# define _strong_alias(name, aliasname) \
|
||||||
|
extern __typeof (name) aliasname __attribute__ ((alias (#name)));
|
||||||
|
|
13
newlib/libc/sys/arm/aeabi_memclr.c
Normal file
13
newlib/libc/sys/arm/aeabi_memclr.c
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#include <string.h>
|
||||||
|
#include "aeabi.h"
|
||||||
|
|
||||||
|
/* Clear memory. */
|
||||||
|
void
|
||||||
|
__aeabi_memclr (void *dest, size_t n)
|
||||||
|
{
|
||||||
|
memset (dest, 0, n);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Versions of the above which may assume memory alignment. */
|
||||||
|
strong_alias (__aeabi_memclr, __aeabi_memclr4)
|
||||||
|
strong_alias (__aeabi_memclr, __aeabi_memclr8)
|
13
newlib/libc/sys/arm/aeabi_memcpy.c
Normal file
13
newlib/libc/sys/arm/aeabi_memcpy.c
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#include <string.h>
|
||||||
|
#include "aeabi.h"
|
||||||
|
|
||||||
|
/* Copy memory like memcpy, but no return value required. */
|
||||||
|
void
|
||||||
|
__aeabi_memcpy (void *dest, const void *src, size_t n)
|
||||||
|
{
|
||||||
|
memcpy (dest, src, n);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Versions of the above which may assume memory alignment. */
|
||||||
|
strong_alias (__aeabi_memcpy, __aeabi_memcpy4)
|
||||||
|
strong_alias (__aeabi_memcpy, __aeabi_memcpy8)
|
13
newlib/libc/sys/arm/aeabi_memmove.c
Normal file
13
newlib/libc/sys/arm/aeabi_memmove.c
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#include <string.h>
|
||||||
|
#include "aeabi.h"
|
||||||
|
|
||||||
|
/* Copy memory like memmove, but no return value required. */
|
||||||
|
void
|
||||||
|
__aeabi_memmove (void *dest, const void *src, size_t n)
|
||||||
|
{
|
||||||
|
memmove (dest, src, n);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Versions of the above which may assume memory alignment. */
|
||||||
|
strong_alias (__aeabi_memmove, __aeabi_memmove4)
|
||||||
|
strong_alias (__aeabi_memmove, __aeabi_memmove8)
|
14
newlib/libc/sys/arm/aeabi_memset.c
Normal file
14
newlib/libc/sys/arm/aeabi_memset.c
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <string.h>
|
||||||
|
#include "aeabi.h"
|
||||||
|
|
||||||
|
/* Set memory like memset, but different argument order and no return
|
||||||
|
value required. */
|
||||||
|
void
|
||||||
|
__aeabi_memset (void *dest, size_t n, int c)
|
||||||
|
{
|
||||||
|
memset (dest, c, n);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Versions of the above which may assume memory alignment. */
|
||||||
|
strong_alias (__aeabi_memset, __aeabi_memset4)
|
||||||
|
strong_alias (__aeabi_memset, __aeabi_memset8)
|
Loading…
x
Reference in New Issue
Block a user