111d62b6fSEmmanuel Vadot /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 311d62b6fSEmmanuel Vadot * 40b453151SVal Packett * Copyright (c) 2020 Val Packett <val@packett.cool> 511d62b6fSEmmanuel Vadot * 611d62b6fSEmmanuel Vadot * Redistribution and use in source and binary forms, with or without 711d62b6fSEmmanuel Vadot * modification, are permitted provided that the following conditions 811d62b6fSEmmanuel Vadot * are met: 911d62b6fSEmmanuel Vadot * 1. Redistributions of source code must retain the above copyright 1011d62b6fSEmmanuel Vadot * notice, this list of conditions and the following disclaimer. 1111d62b6fSEmmanuel Vadot * 2. Redistributions in binary form must reproduce the above copyright 1211d62b6fSEmmanuel Vadot * notice, this list of conditions and the following disclaimer in the 1311d62b6fSEmmanuel Vadot * documentation and/or other materials provided with the distribution. 1411d62b6fSEmmanuel Vadot * 1511d62b6fSEmmanuel Vadot * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 1611d62b6fSEmmanuel Vadot * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1711d62b6fSEmmanuel Vadot * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1811d62b6fSEmmanuel Vadot * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 1911d62b6fSEmmanuel Vadot * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2011d62b6fSEmmanuel Vadot * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2111d62b6fSEmmanuel Vadot * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2211d62b6fSEmmanuel Vadot * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2311d62b6fSEmmanuel Vadot * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2411d62b6fSEmmanuel Vadot * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2511d62b6fSEmmanuel Vadot * SUCH DAMAGE. 2611d62b6fSEmmanuel Vadot */ 2711d62b6fSEmmanuel Vadot 28307f78f3SVladimir Kondratyev #ifndef _LINUXKPI_ASM_FPU_API_H_ 29307f78f3SVladimir Kondratyev #define _LINUXKPI_ASM_FPU_API_H_ 3011d62b6fSEmmanuel Vadot 31469884cfSHans Petter Selasky #define kernel_fpu_begin() \ 32469884cfSHans Petter Selasky lkpi_kernel_fpu_begin() 3311d62b6fSEmmanuel Vadot 34469884cfSHans Petter Selasky #define kernel_fpu_end() \ 35469884cfSHans Petter Selasky lkpi_kernel_fpu_end() 3611d62b6fSEmmanuel Vadot 37469884cfSHans Petter Selasky extern void lkpi_kernel_fpu_begin(void); 38469884cfSHans Petter Selasky extern void lkpi_kernel_fpu_end(void); 3911d62b6fSEmmanuel Vadot 40307f78f3SVladimir Kondratyev #endif /* _LINUXKPI_ASM_FPU_API_H_ */ 41