From: Quant-X Alpha Linux Support <stefan@sime.com>
To: axp-list@redhat.com
Subject: Re: Missing data types?
Date: Sat, 8 Aug 1998 02:46:46 +0200 [thread overview]
Message-ID: <199808080046.CAA31399@stefan.sime.com> (raw)
In-Reply-To: <Pine.LNX.3.91.980807185433.21535A-100000@LoneStar.rcclub.org> (message from Larry Creech on Fri, 7 Aug 1998 19:01:00 -0500 (CDT))
Hi !
> I've been trying to compile the 2.1.1xx kernels. I have no problem on the
> Intel box, but trying to compile the same video for linux driver for the
> Alpha I get these errors:
>
> drivers/char/char.a(radio-aztech.o): In function `az_setfreq':
> radio-aztech.c(.text+0x2f0): undefined reference to `__floatdidf'
> I've done a recursive grep though the filesystem trying to find them, but
> no luck.
The problem is easy: radio-aztech.c uses floating-point code in kernel
which is not allowed. We use -msoft-float to dedect this. __floatdidf
is a emulation call but the kernel will not be linked against fp-emu code.
The fix is easy:
--- linux/drivers/char/radio-aztech.c~ Mon Jul 20 22:17:01 1998
+++ linux/drivers/char/radio-aztech.c Sat Aug 8 02:44:21 1998
@@ -113,7 +113,7 @@
{
int i;
- frequency = (frequency / 16.0) * 100; /* massage data a bit */
+ frequency = (frequency * 100 + 8) / 16; /* massage data a bit */
frequency += 1070; /* tuning needs 24 data bits */
frequency /= 5;
ciao -
Stefan.
--
Quant-X Service & Ph: (+43) 4212 6004-0
Consulting Ges.m.b.H. Fax: (+43) 4212 600420
http://www.quant-x.com Email: support@quant-x.com
next prev parent reply other threads:[~1998-08-08 0:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-08 0:01 Missing data types? Larry Creech
1998-08-08 0:46 ` Quant-X Alpha Linux Support [this message]
1998-08-08 0:53 ` Michal Jaegermann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox