Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Jun Sun <jsun@mvista.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	durai <durai@isofttech.com>, mips <linux-mips@linux-mips.org>
Subject: Re: unresolved symbol litodp,dptoli,dpmul - floating point operations in kernel
Date: Mon, 13 Oct 2003 22:54:35 +0200	[thread overview]
Message-ID: <20031013205435.GB21100@linux-mips.org> (raw)
In-Reply-To: <20031010095824.B4192@mvista.com>

On Fri, Oct 10, 2003 at 09:58:24AM -0700, Jun Sun wrote:

> > > > insmod: unresolved symbol dptoli
> > > > insmod: unresolved symbol dpmul
> > > > insmod: unresolved symbol litodp

> If you are really really desparate, something like the following
> might work.
> 
> void use_fpu(void)
> {
> 	if (is_fpu_owner()) {
> 		save_fp(current);
> 		loose_fpu();
> 		enable_fpu();
> 	}
> 	local_irq_save(flags);
> 	
> 	/* now use fpu and store the results */
> 
> 	local_irq_restore(flags);
> }
> 
> I like to emphsize this is just a hack and I am not even sure if it will work
> at all.  If compiler complains you might have to change the
> CC flag for that file or use fpu with inline assembly.

The symbols he was missing are used for software floating point.  Software
floating point in kernel space is perfectly ok since it doesn't use the FPU
so your hack isn't even needed.

  Ralf

      reply	other threads:[~2003-10-13 20:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-10 13:59 unresolved symbol litodp,dptoli,dpmul - floating point operations in kernel durai
2003-10-10 14:28 ` Geert Uytterhoeven
2003-10-10 16:58   ` Jun Sun
2003-10-13 20:54     ` Ralf Baechle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031013205435.GB21100@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=durai@isofttech.com \
    --cc=geert@linux-m68k.org \
    --cc=jsun@mvista.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox