fpmodule.c (f9cd49033b349b8be3bb1f01b39eed837853d880) fpmodule.c (4ed89f2228061422ce5f62545fd0b6f6648bd2cc)
1
2/*
3 NetWinder Floating Point Emulator
4 (c) Rebel.com, 1998-1999
5 (c) Philip Blundell, 1998-1999
6
7 Direct questions, comments to Scott Bambrough <scottb@netwinder.org>
8

--- 72 unchanged lines hidden (view full) ---

81static void (*orig_fp_enter)(void);
82
83/* forward declarations */
84extern void nwfpe_enter(void);
85
86static int __init fpe_init(void)
87{
88 if (sizeof(FPA11) > sizeof(union fp_state)) {
1
2/*
3 NetWinder Floating Point Emulator
4 (c) Rebel.com, 1998-1999
5 (c) Philip Blundell, 1998-1999
6
7 Direct questions, comments to Scott Bambrough <scottb@netwinder.org>
8

--- 72 unchanged lines hidden (view full) ---

81static void (*orig_fp_enter)(void);
82
83/* forward declarations */
84extern void nwfpe_enter(void);
85
86static int __init fpe_init(void)
87{
88 if (sizeof(FPA11) > sizeof(union fp_state)) {
89 printk(KERN_ERR "nwfpe: bad structure size\n");
89 pr_err("nwfpe: bad structure size\n");
90 return -EINVAL;
91 }
92
93 if (sizeof(FPREG) != 12) {
90 return -EINVAL;
91 }
92
93 if (sizeof(FPREG) != 12) {
94 printk(KERN_ERR "nwfpe: bad register size\n");
94 pr_err("nwfpe: bad register size\n");
95 return -EINVAL;
96 }
97 if (fpe_type[0] && strcmp(fpe_type, "nwfpe"))
98 return 0;
99
100 /* Display title, version and copyright information. */
101 printk(KERN_WARNING "NetWinder Floating Point Emulator V0.97 ("
102 NWFPE_BITS " precision)\n");

--- 88 unchanged lines hidden ---
95 return -EINVAL;
96 }
97 if (fpe_type[0] && strcmp(fpe_type, "nwfpe"))
98 return 0;
99
100 /* Display title, version and copyright information. */
101 printk(KERN_WARNING "NetWinder Floating Point Emulator V0.97 ("
102 NWFPE_BITS " precision)\n");

--- 88 unchanged lines hidden ---