1276397Sian/*-
2276397Sian * Copyright (c) 2014 Ian Lepore <ian@freebsd.org>
3297682Sian * All rights reserved.
4276397Sian *
5276397Sian * Redistribution and use in source and binary forms, with or without
6276397Sian * modification, are permitted provided that the following conditions
7276397Sian * are met:
8276397Sian * 1. Redistributions of source code must retain the above copyright
9276397Sian *    notice, this list of conditions and the following disclaimer.
10276397Sian * 2. Redistributions in binary form must reproduce the above copyright
11276397Sian *    notice, this list of conditions and the following disclaimer in the
12276397Sian *    documentation and/or other materials provided with the distribution.
13276397Sian *
14276397Sian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15276397Sian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16276397Sian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17276397Sian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18276397Sian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19276397Sian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20276397Sian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21276397Sian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22276397Sian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23276397Sian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24276397Sian * SUCH DAMAGE.
25276397Sian *
26276397Sian * $FreeBSD$
27276397Sian */
28276397Sian
29276397Sian/*
30276397Sian * The kernel build machinery wants the file containing the entry point to be
31276397Sian * named locore.S, but we want separate files for v4 and v6 builds, so just
32276397Sian * include the arch-appropriate file from this properly-named file.
33276397Sian */
34276397Sian
35276397Sian#include <machine/acle-compat.h>
36276397Sian
37276397Sian#if __ARM_ARCH >= 6
38276397Sian#include "locore-v6.S"
39276397Sian#else
40276397Sian#include "locore-v4.S"
41276397Sian#endif
42