1249d5c7aSAndrew Turner/*- 2249d5c7aSAndrew Turner * Copyright (c) 2015 The FreeBSD Foundation 3249d5c7aSAndrew Turner * 4249d5c7aSAndrew Turner * This software was developed by Andrew Turner under 5249d5c7aSAndrew Turner * sponsorship from the FreeBSD Foundation. 6249d5c7aSAndrew Turner * 7249d5c7aSAndrew Turner * Redistribution and use in source and binary forms, with or without 8249d5c7aSAndrew Turner * modification, are permitted provided that the following conditions 9249d5c7aSAndrew Turner * are met: 10249d5c7aSAndrew Turner * 1. Redistributions of source code must retain the above copyright 11249d5c7aSAndrew Turner * notice, this list of conditions and the following disclaimer. 12249d5c7aSAndrew Turner * 2. Redistributions in binary form must reproduce the above copyright 13249d5c7aSAndrew Turner * notice, this list of conditions and the following disclaimer in the 14249d5c7aSAndrew Turner * documentation and/or other materials provided with the distribution. 15249d5c7aSAndrew Turner * 16249d5c7aSAndrew Turner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17249d5c7aSAndrew Turner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18249d5c7aSAndrew Turner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19249d5c7aSAndrew Turner * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20249d5c7aSAndrew Turner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21249d5c7aSAndrew Turner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22249d5c7aSAndrew Turner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23249d5c7aSAndrew Turner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24249d5c7aSAndrew Turner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25249d5c7aSAndrew Turner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26249d5c7aSAndrew Turner * SUCH DAMAGE. 27249d5c7aSAndrew Turner */ 28249d5c7aSAndrew Turner 29249d5c7aSAndrew Turner#include <machine/asm.h> 30*fd5aaf2eSAndrew Turner#include <sys/elf_common.h> 31*fd5aaf2eSAndrew Turner 32249d5c7aSAndrew TurnerENTRY(_ctx_start) 33249d5c7aSAndrew Turner blr x19 /* Call func from makecontext */ 34249d5c7aSAndrew Turner mov x0, x20 /* Load ucp saved in makecontext */ 35249d5c7aSAndrew Turner bl _C_LABEL(ctx_done) 36249d5c7aSAndrew Turner bl _C_LABEL(abort) 37249d5c7aSAndrew TurnerEND(_ctx_start) 38*fd5aaf2eSAndrew Turner 39*fd5aaf2eSAndrew TurnerGNU_PROPERTY_AARCH64_FEATURE_1_NOTE(GNU_PROPERTY_AARCH64_FEATURE_1_VAL) 40