1*249d5c7aSAndrew Turner/*- 2*249d5c7aSAndrew Turner * Copyright (c) 2015 The FreeBSD Foundation 3*249d5c7aSAndrew Turner * All rights reserved. 4*249d5c7aSAndrew Turner * 5*249d5c7aSAndrew Turner * This software was developed by Andrew Turner under 6*249d5c7aSAndrew Turner * sponsorship from the FreeBSD Foundation. 7*249d5c7aSAndrew Turner * 8*249d5c7aSAndrew Turner * Redistribution and use in source and binary forms, with or without 9*249d5c7aSAndrew Turner * modification, are permitted provided that the following conditions 10*249d5c7aSAndrew Turner * are met: 11*249d5c7aSAndrew Turner * 1. Redistributions of source code must retain the above copyright 12*249d5c7aSAndrew Turner * notice, this list of conditions and the following disclaimer. 13*249d5c7aSAndrew Turner * 2. Redistributions in binary form must reproduce the above copyright 14*249d5c7aSAndrew Turner * notice, this list of conditions and the following disclaimer in the 15*249d5c7aSAndrew Turner * documentation and/or other materials provided with the distribution. 16*249d5c7aSAndrew Turner * 17*249d5c7aSAndrew Turner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18*249d5c7aSAndrew Turner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19*249d5c7aSAndrew Turner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20*249d5c7aSAndrew Turner * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21*249d5c7aSAndrew Turner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22*249d5c7aSAndrew Turner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23*249d5c7aSAndrew Turner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24*249d5c7aSAndrew Turner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25*249d5c7aSAndrew Turner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26*249d5c7aSAndrew Turner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27*249d5c7aSAndrew Turner * SUCH DAMAGE. 28*249d5c7aSAndrew Turner */ 29*249d5c7aSAndrew Turner 30*249d5c7aSAndrew Turner#include <machine/asm.h> 31*249d5c7aSAndrew Turner__FBSDID("$FreeBSD$"); 32*249d5c7aSAndrew Turner 33*249d5c7aSAndrew TurnerENTRY(_ctx_start) 34*249d5c7aSAndrew Turner blr x19 /* Call func from makecontext */ 35*249d5c7aSAndrew Turner mov x0, x20 /* Load ucp saved in makecontext */ 36*249d5c7aSAndrew Turner bl _C_LABEL(ctx_done) 37*249d5c7aSAndrew Turner bl _C_LABEL(abort) 38*249d5c7aSAndrew TurnerEND(_ctx_start) 39