mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 18:44:44 +08:00
d2b194ed82
The math emulation code is centered around a set of generic macros that provide the core of the emulation that are shared by the various architectures and other projects (like glibc). Each arch implements its own sfp-machine.h to specific various arch specific details. For historic reasons that are now lost the powerpc math-emu code had its own version of the common headers. This moves us to using the kernel generic version and thus getting fixes when those are updated. Also cleaned up exception/error reporting from the FP emulation functions. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
19 lines
282 B
C
19 lines
282 B
C
#include <linux/types.h>
|
|
#include <linux/errno.h>
|
|
#include <asm/uaccess.h>
|
|
|
|
#include <asm/sfp-machine.h>
|
|
#include <math-emu/soft-fp.h>
|
|
|
|
int
|
|
mffs(u32 *frD)
|
|
{
|
|
frD[1] = __FPU_FPSCR;
|
|
|
|
#ifdef DEBUG
|
|
printk("%s: frD %p: %08x.%08x\n", __func__, frD, frD[0], frD[1]);
|
|
#endif
|
|
|
|
return 0;
|
|
}
|