xref: /openbsd-src/lib/libc/arch/arm/string/memcpy.S (revision ea6088e7d368d53c49ebfdf4520275cec2f78f5b)
1*ea6088e7Sguenther/*	$OpenBSD: memcpy.S,v 1.8 2017/11/29 05:13:57 guenther Exp $	*/
2d987040fSdrahn/*	$NetBSD: memcpy.S,v 1.3 2003/04/05 23:08:52 bjh21 Exp $	*/
3d987040fSdrahn
4d987040fSdrahn/*-
5d987040fSdrahn * Copyright (c) 1997 The NetBSD Foundation, Inc.
6d987040fSdrahn * All rights reserved.
7d987040fSdrahn *
8d987040fSdrahn * This code is derived from software contributed to The NetBSD Foundation
9d987040fSdrahn * by Neil A. Carson and Mark Brinicombe
10d987040fSdrahn *
11d987040fSdrahn * Redistribution and use in source and binary forms, with or without
12d987040fSdrahn * modification, are permitted provided that the following conditions
13d987040fSdrahn * are met:
14d987040fSdrahn * 1. Redistributions of source code must retain the above copyright
15d987040fSdrahn *    notice, this list of conditions and the following disclaimer.
16d987040fSdrahn * 2. Redistributions in binary form must reproduce the above copyright
17d987040fSdrahn *    notice, this list of conditions and the following disclaimer in the
18d987040fSdrahn *    documentation and/or other materials provided with the distribution.
19d987040fSdrahn *
20d987040fSdrahn * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21d987040fSdrahn * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22d987040fSdrahn * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23d987040fSdrahn * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24d987040fSdrahn * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25d987040fSdrahn * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26d987040fSdrahn * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27d987040fSdrahn * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28d987040fSdrahn * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29d987040fSdrahn * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30d987040fSdrahn * POSSIBILITY OF SUCH DAMAGE.
31d987040fSdrahn */
32d987040fSdrahn
3338848718Sguenther#include "DEFS.h"
34d987040fSdrahn
355b859c19Sderaadt/*
365b859c19Sderaadt * XXX
375b859c19Sderaadt * the _memcpy function which this calls is actually a _memmove
385b859c19Sderaadt * variant which handles overlaps...  That should be fixed.
395b859c19Sderaadt */
405b859c19Sderaadt
41d987040fSdrahnENTRY(memcpy)
42d987040fSdrahn	stmfd	sp!, {r0, lr}
438ead0783Sguenther	bl	_memcpy
44d987040fSdrahn	ldmfd	sp!, {r0, pc}
45*ea6088e7SguentherEND_BUILTIN(memcpy)
46