1*7ab1a32cSRuslan Bukin /*- 2*7ab1a32cSRuslan Bukin * SPDX-License-Identifier: BSD-2-Clause 3*7ab1a32cSRuslan Bukin * 4*7ab1a32cSRuslan Bukin * Copyright (c) 2024 Ruslan Bukin <br@bsdpad.com> 5*7ab1a32cSRuslan Bukin * 6*7ab1a32cSRuslan Bukin * This software was developed by the University of Cambridge Computer 7*7ab1a32cSRuslan Bukin * Laboratory (Department of Computer Science and Technology) under Innovate 8*7ab1a32cSRuslan Bukin * UK project 105694, "Digital Security by Design (DSbD) Technology Platform 9*7ab1a32cSRuslan Bukin * Prototype". 10*7ab1a32cSRuslan Bukin * 11*7ab1a32cSRuslan Bukin * Redistribution and use in source and binary forms, with or without 12*7ab1a32cSRuslan Bukin * modification, are permitted provided that the following conditions 13*7ab1a32cSRuslan Bukin * are met: 14*7ab1a32cSRuslan Bukin * 1. Redistributions of source code must retain the above copyright 15*7ab1a32cSRuslan Bukin * notice, this list of conditions and the following disclaimer. 16*7ab1a32cSRuslan Bukin * 2. Redistributions in binary form must reproduce the above copyright 17*7ab1a32cSRuslan Bukin * notice, this list of conditions and the following disclaimer in the 18*7ab1a32cSRuslan Bukin * documentation and/or other materials provided with the distribution. 19*7ab1a32cSRuslan Bukin * 20*7ab1a32cSRuslan Bukin * THIS SOFTWARE IS PROVIDED BY NETAPP, INC ``AS IS'' AND 21*7ab1a32cSRuslan Bukin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22*7ab1a32cSRuslan Bukin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23*7ab1a32cSRuslan Bukin * ARE DISCLAIMED. IN NO EVENT SHALL NETAPP, INC OR CONTRIBUTORS BE LIABLE 24*7ab1a32cSRuslan Bukin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25*7ab1a32cSRuslan Bukin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26*7ab1a32cSRuslan Bukin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27*7ab1a32cSRuslan Bukin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28*7ab1a32cSRuslan Bukin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29*7ab1a32cSRuslan Bukin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30*7ab1a32cSRuslan Bukin * SUCH DAMAGE. 31*7ab1a32cSRuslan Bukin */ 32*7ab1a32cSRuslan Bukin 33*7ab1a32cSRuslan Bukin #ifndef _RISCV_H_ 34*7ab1a32cSRuslan Bukin #define _RISCV_H_ 35*7ab1a32cSRuslan Bukin 36*7ab1a32cSRuslan Bukin #define CPU_TO_HART(x) (x) 37*7ab1a32cSRuslan Bukin #define HART_TO_CPU(x) (x) 38*7ab1a32cSRuslan Bukin 39*7ab1a32cSRuslan Bukin void vmexit_set_bsp(int hart_id); 40*7ab1a32cSRuslan Bukin 41*7ab1a32cSRuslan Bukin #endif /* !_RISCV_H_ */ 42