xref: /freebsd/usr.sbin/bhyve/amd64/spinup_ap.h (revision c7c5d3e3888aa9018297794285dcd884e6182bd5)
1*c7c5d3e3SMark Johnston /*-
2*c7c5d3e3SMark Johnston  * SPDX-License-Identifier: BSD-2-Clause
3*c7c5d3e3SMark Johnston  *
4*c7c5d3e3SMark Johnston  * Copyright (c) 2012 NetApp, Inc.
5*c7c5d3e3SMark Johnston  * All rights reserved.
6*c7c5d3e3SMark Johnston  *
7*c7c5d3e3SMark Johnston  * Redistribution and use in source and binary forms, with or without
8*c7c5d3e3SMark Johnston  * modification, are permitted provided that the following conditions
9*c7c5d3e3SMark Johnston  * are met:
10*c7c5d3e3SMark Johnston  * 1. Redistributions of source code must retain the above copyright
11*c7c5d3e3SMark Johnston  *    notice, this list of conditions and the following disclaimer.
12*c7c5d3e3SMark Johnston  * 2. Redistributions in binary form must reproduce the above copyright
13*c7c5d3e3SMark Johnston  *    notice, this list of conditions and the following disclaimer in the
14*c7c5d3e3SMark Johnston  *    documentation and/or other materials provided with the distribution.
15*c7c5d3e3SMark Johnston  *
16*c7c5d3e3SMark Johnston  * THIS SOFTWARE IS PROVIDED BY NETAPP, INC ``AS IS'' AND
17*c7c5d3e3SMark Johnston  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18*c7c5d3e3SMark Johnston  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19*c7c5d3e3SMark Johnston  * ARE DISCLAIMED.  IN NO EVENT SHALL NETAPP, INC OR CONTRIBUTORS BE LIABLE
20*c7c5d3e3SMark Johnston  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21*c7c5d3e3SMark Johnston  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22*c7c5d3e3SMark Johnston  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23*c7c5d3e3SMark Johnston  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24*c7c5d3e3SMark Johnston  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25*c7c5d3e3SMark Johnston  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26*c7c5d3e3SMark Johnston  * SUCH DAMAGE.
27*c7c5d3e3SMark Johnston  */
28*c7c5d3e3SMark Johnston 
29*c7c5d3e3SMark Johnston #ifndef	_SPINUP_AP_H_
30*c7c5d3e3SMark Johnston #define	_SPINUP_AP_H_
31*c7c5d3e3SMark Johnston 
32*c7c5d3e3SMark Johnston void spinup_ap(struct vcpu *newcpu, uint64_t rip);
33*c7c5d3e3SMark Johnston 
34*c7c5d3e3SMark Johnston #endif
35