1193326Sed/*-
2193326Sed * Copyright (c) 2006 M. Warner Losh.  All rights reserved.
3193326Sed *
4193326Sed * Redistribution and use in source and binary forms, with or without
5193326Sed * modification, are permitted provided that the following conditions
6193326Sed * are met:
7193326Sed * 1. Redistributions of source code must retain the above copyright
8193326Sed *    notice, this list of conditions and the following disclaimer.
9193326Sed * 2. Redistributions in binary form must reproduce the above copyright
10193326Sed *    notice, this list of conditions and the following disclaimer in the
11193326Sed *    documentation and/or other materials provided with the distribution.
12193326Sed *
13193326Sed * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14193326Sed * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15193326Sed * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16193326Sed * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17193326Sed * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18193326Sed * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19193326Sed * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20193326Sed * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21193326Sed * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22193326Sed * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23193326Sed *
24193326Sed */
25193326Sed
26193326Sed#include <sys/cdefs.h>
27193326Sed__FBSDID("$FreeBSD: releng/11.0/sys/boot/arm/at91/libat91/memset.c 164137 2006-11-09 20:32:36Z imp $");
28193326Sed
29193326Sed#include "lib.h"
30193326Sed
31193326Sedvoid
32193326Sedp_memset(char *buffer, char value, int size)
33193326Sed{
34193326Sed	while (size--)
35193326Sed		*buffer++ = value;
36193326Sed}
37193326Sed