1dfe57951SMitchell Horne /*- 2dfe57951SMitchell Horne * SPDX-License-Identifier: BSD-2-Clause 3dfe57951SMitchell Horne * 4dfe57951SMitchell Horne * Copyright (c) 2024 The FreeBSD Foundation 5dfe57951SMitchell Horne * 6dfe57951SMitchell Horne * This software was developed by Mitchell Horne <mhorne@FreeBSD.org> under 7dfe57951SMitchell Horne * sponsorship from the FreeBSD Foundation. 8dfe57951SMitchell Horne * 9dfe57951SMitchell Horne * Redistribution and use in source and binary forms, with or without 10dfe57951SMitchell Horne * modification, are permitted provided that the following conditions 11dfe57951SMitchell Horne * are met: 12dfe57951SMitchell Horne * 1. Redistributions of source code must retain the above copyright 13dfe57951SMitchell Horne * notice, this list of conditions and the following disclaimer. 14dfe57951SMitchell Horne * 2. Redistributions in binary form must reproduce the above copyright 15dfe57951SMitchell Horne * notice, this list of conditions and the following disclaimer in the 16dfe57951SMitchell Horne * documentation and/or other materials provided with the distribution. 17dfe57951SMitchell Horne * 18dfe57951SMitchell Horne * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 19dfe57951SMitchell Horne * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20dfe57951SMitchell Horne * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21dfe57951SMitchell Horne * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 22dfe57951SMitchell Horne * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23dfe57951SMitchell Horne * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24dfe57951SMitchell Horne * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25dfe57951SMitchell Horne * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26dfe57951SMitchell Horne * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27dfe57951SMitchell Horne * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28dfe57951SMitchell Horne * SUCH DAMAGE. 29dfe57951SMitchell Horne */ 30dfe57951SMitchell Horne #ifndef _RISCV_THEAD_H_ 31dfe57951SMitchell Horne #define _RISCV_THEAD_H_ 32dfe57951SMitchell Horne 33*ccbe9a9fSMitchell Horne extern bool has_errata_thead_pbmt; 34*ccbe9a9fSMitchell Horne 35dfe57951SMitchell Horne void thead_setup_cache(void); 36dfe57951SMitchell Horne 37dfe57951SMitchell Horne #endif /* _RISCV_THEAD_H_ */ 38