/*-1* Copyright (c) 2016-2024 Ruslan Bukin <[email protected]>2* All rights reserved.3*4* This software was developed by SRI International and the University of5* Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-02376* ("CTSRD"), as part of the DARPA CRASH research programme.7*8* Redistribution and use in source and binary forms, with or without9* modification, are permitted provided that the following conditions10* are met:11* 1. Redistributions of source code must retain the above copyright12* notice, this list of conditions and the following disclaimer.13* 2. Redistributions in binary form must reproduce the above copyright14* notice, this list of conditions and the following disclaimer in the15* documentation and/or other materials provided with the distribution.16*17* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND18* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE19* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE20* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE21* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL22* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS23* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)24* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT25* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY26* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF27* SUCH DAMAGE.28*/2930#ifndef _MACHINE_FPE_H_31#define _MACHINE_FPE_H_3233void fpe_state_save(struct thread *td);34void fpe_state_clear(void);3536struct fpreg *fpu_save_area_alloc(void);37void fpu_save_area_free(struct fpreg *fsa);38void fpu_save_area_reset(struct fpreg *fsa);3940void fpe_enable(void);41void fpe_disable(void);4243void fpe_store(struct fpreg *state);44void fpe_restore(struct fpreg *state);4546#endif /* !_MACHINE_FPE_H_ */474849