1 #ifndef _ASM_IA64_FPSWA_H
2 #define _ASM_IA64_FPSWA_H
5 * Floating-point Software Assist
7 * Copyright (C) 1999 Intel Corporation.
8 * Copyright (C) 1999 Asit Mallick <asit.k.mallick@intel.com>
9 * Copyright (C) 1999 Goutham Rao <goutham.rao@intel.com>
14 unsigned long fp_lp[4*2];
15 } fp_state_low_preserved_t;
19 unsigned long fp_lv[10 * 2];
20 } fp_state_low_volatile_t;
24 unsigned long fp_hp[16 * 2];
25 } fp_state_high_preserved_t;
29 unsigned long fp_hv[96 * 2];
30 } fp_state_high_volatile_t;
33 * floating point state to be passed to the FP emulation library by
34 * the trap/fault handler
37 unsigned long bitmask_low64;
38 unsigned long bitmask_high64;
39 fp_state_low_preserved_t *fp_state_low_preserved;
40 fp_state_low_volatile_t *fp_state_low_volatile;
41 fp_state_high_preserved_t *fp_state_high_preserved;
42 fp_state_high_volatile_t *fp_state_high_volatile;
53 * function header for the Floating Point software assist
54 * library. This function is invoked by the Floating point software
55 * assist trap/fault handler.
57 typedef fpswa_ret_t (*efi_fpswa_t) (unsigned long trap_type, void *bundle, unsigned long *ipsr,
58 unsigned long *fsr, unsigned long *isr, unsigned long *preds,
59 unsigned long *ifs, fp_state_t *fp_state);
62 * This is the FPSWA library interface as defined by EFI. We need to pass a
63 * pointer to the interface itself on a call to the assist library
66 unsigned int revision;
67 unsigned int reserved;
71 extern fpswa_interface_t *fpswa_interface;
73 #endif /* _ASM_IA64_FPSWA_H */